IE 7中的对齐问题( alignment issue in IE 7)

编程入门 行业动态 更新时间:2024-10-16 18:40:00
IE 7中的对齐问题( alignment issue in IE 7)

我使用以下HTML代码:

<table class="question" cellpadding="0" cellspacing="0" border="0" width="99%"> <tr bgcolor="#ffffff"> <td style="width:5px;" height="10" text-align="left">hello</td> </tr> </table>

所需的输出(进入IE7以外的所有浏览器):

hello

在IE 7中获得以下输出:

hello //extra space is being added in the beginning of the text

我的问题是IE7中td标记内的文本对齐方式。 我在网上搜索但找不到任何满意的答案。 任何帮助将不胜感激。

i am using the following html code:

<table class="question" cellpadding="0" cellspacing="0" border="0" width="99%"> <tr bgcolor="#ffffff"> <td style="width:5px;" height="10" text-align="left">hello</td> </tr> </table>

desired output(getting in all the browsers except IE7):

hello

in IE 7 getting the following output:

hello //extra space is being added in the beginning of the text

my problem is the alignment of text inside the td tag in IE7. I searched in the internet but could not find any satisfactory answer. Any help will be appreciated.

最满意答案

我有一个问题,宽度为td.increased到10px,它工作正常。谢谢lister先生为了这个问题。

< td style="width:10px;" height="10" text-align="left">hello</td> td style="width:10px;" height="10" text-align="left">hello</td>

i had an issue with the width of td.increased to 10px and it was working fine.thanks to mr lister for ponting out the same.

<td style="width:10px;" height="10" text-align="left">hello</td>

更多推荐

本文发布于:2023-08-07 00:02:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1456705.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:alignment   issue

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!