Home >Web Front-end >HTML Tutorial >The problem of jsp page td not moving to the right_html/css_WEB-ITnose
For the same piece of code, the content in td is to the right in ie10, 360 ie10 mode, and 360 speed mode. But it does not move to the right on chrome40.0.* versions.
The code is as follows:
<td width="82" height="24"> <table width="82" height="24" border="1" cellpadding="0" cellspacing="0" style="text-align:right"> <tr class="formtext"> <td width="10" height="24"> </td> <td width="72" valign="middle" align="right" style="text-align:right"><nobr>B设备IP | </nobr></td> </tr> </table></td>
See if it is caused by
It should be that the width is not enough and the text cannot hold up.
Add border: 1px solid red; this style to td.
Use the border of td to see how wide it is. Then look at the text to see how much space it actually takes up.
See if it is caused by
<table height="24" border="1" cellpadding="0" cellspacing="0" style="font-family: '宋体'"> <tr> <td>我是汉字</td> </tr> <tr> <td> 我是汉字</td> </tr> <tr> <td> 我是汉字</td> </tr></table>