HTML对齐问题

2025-04-01 17:09:08
推荐回答(5个)
回答1:

你在body处,或者别的地方,看看有没有设置text-align:center或者 align="center" 。这个可能是别的样式的影响,建议你用浏览器查看一下比如:firefox的debug来看看是不是样式的问题。只有这一部分真的不好分析

回答2:





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"就好了

回答3:

你用Table的,应该是


内容日期


内容日期



内容日期

这样的格式是你想要的么?要是文字直接左对齐就用楼上的方法是正解。

文字定义的话,看了你代码里有P和Span标记。我可以理解为table p,table span{test-align:left等}

回答4:

你这应该是每段的text-align的属性值设置成center了,设置成left或者right

回答5:

你这。。。。。css能规范点吗!在table里添加align属性 控制left对齐即可!