HTML对齐问题

Thank you for choosing the Pavilion Hotel Shenzhen, we look forward to your visit, arriving on ${sendInfo.reservation.arrivalDate},departing on ${sendInfo.reservation.departure}. Your confirmation number is ${sendInfo.reservation.confirmationNo}.For details about your reservation, please see the information below.


显示出来的结果如下,请问下应该如何对齐?
你在body处,或者别的地方,看看有没有设置text-align:center或者 align="center"蠢模 。这个可能是别的样式的带谨缓影响,建议你用浏览器查看一下比如:firefox的debug来看看是不是样式的问题。只晌世有这一部分真的不好分析




Thank you for choosing the Pavilion Hotel Shenzhen, we look forward to your visit, arriving on ${sendInfo.reservation.arrivalDate},departing on ${sendInfo.reservation.departure}. Your confirmation number is ${sendInfo.reservation.confirmationNo}.For details about your reservation, please see the information below.







加一个text-align="center"就好了

你用Table的,应该是


内容日期


内容日期



内容日期

这样的格式渗态是你想要的么?要是告春文字直接左对齐就用丛友源楼上的方法是正解。

文字定义的话,看了你代码里有P和Span标记。我可以理解为table p,table span{test-align:left等}
你这应该是每段的text-align的属性值设置成center了,设置成left或者right
你这。。。。。css能规范点吗!在table里添加align属性 控制left对齐即可!
HTML对齐问题
← 上一篇: 下一篇: →