Home > Web Front-end > HTML Tutorial > The problem of jsp page td not moving to the right_html/css_WEB-ITnose

The problem of jsp page td not moving to the right_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:48:09
Original
1724 people have browsed it

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>
Copy after login

The screenshot is as follows:


Reply to the discussion (solution)

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


It is indeed a problem caused by different browsers with different widths.
Tested it,
<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>
Copy after login


Reference: http://blog.sina.com.cn/s/blog_47615df70100z101.html

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template