This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ค้นหาฝ่ายสนับสนุน

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

เรียนรู้เพิ่มเติม

wrong numbering of elements styled with "display: list-item; list-style-type: decimal;"

  • 1 การตอบกลับ
  • 5 คนมีปัญหานี้
  • 2 ครั้งที่ดู
  • ตอบกลับล่าสุดโดย dmuller

more options

Following code :

<style type="text/css">

div {
 display: block;
 margin-left: 2em;
}
span {
 display: list-item;
 list-style-type: decimal;
}

</style>

<div>

 <span>first</span>
 <span>second</span>
 <span>third</span>

</div>

Displays as :

0. first
0. second
0. third 

while looking fine in other browsers (checked IE7, chrome, opera, safari...)

Following code : <!DOCTYPE html> <style type="text/css"> div { display: block; margin-left: 2em; } span { display: list-item; list-style-type: decimal; } </style> &lt;div> &lt;span>first&lt;/span> &lt;span>second&lt;/span> &lt;span>third&lt;/span> &lt;/div> Displays as : 0. first 0. second 0. third while looking fine in other browsers (checked IE7, chrome, opera, safari...)

เปลี่ยนแปลงโดย dmuller เมื่อ

การตอบกลับทั้งหมด (1)

more options

updated code snap...

เปลี่ยนแปลงโดย dmuller เมื่อ