简体   繁体   English

IE7底部显示的有序列表编号

[英]Ordered list number shown at the bottom in IE7

I have a page with an ordered list and it's rendering fine in all browsers except IE7. 我有一个带有排序列表的页面,它在除IE7之外的所有浏览器中都能正常显示。 In IE7, the listing numbers shown at the bottom of the <li> ; 在IE7中,列表号显示在<li>的底部; actually the list contains only a <textarea> . 实际上,该列表仅包含<textarea>

Here is the code looks like, view it in IE7 you can see the numbers shown in the bottom of each <li> . 这是代码的样子,在IE7中查看它,您可以看到每个<li>底部显示的数字。

<ol style="padding-left:25px;">
<li style="margin-bottom:10px;"><textarea name="" id="" cols="5" style="width:400px; min-height:100px;"></textarea></li>
<li style="margin-bottom:10px;"><textarea name="" id="" cols="5" style="width:400px; min-height:100px;"></textarea></li>
<li style="margin-bottom:10px;"><textarea name="" id="" cols="5" style="width:400px; min-height:100px;"></textarea></li>
<li style="margin-bottom:10px;"><textarea name="" id="" cols="5" style="width:400px; min-height:100px;"></textarea></li>
</ol>

See the JS Fiddle.. http://jsfiddle.net/GFRBZ/2/ 请参阅JS小提琴。.http: //jsfiddle.net/GFRBZ/2/

Try textarea { vertical-align:text-top; } 尝试textarea { vertical-align:text-top; } textarea { vertical-align:text-top; }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM