How to create a 1.1, 1.2 1.3 … HTML list?

前端 未结 6 1616
不思量自难忘°
不思量自难忘° 2021-02-19 23:52

I want to create HTML nested lists that has the following format:

1  
   1.1  
   1.2  
   1.3  
   1.4   
2
   2.1

I tried a solution that I f

6条回答
  •  灰色年华
    2021-02-20 00:04

    The before element doesn't work in IE6, but it's the correct way of doing it. I'd recommend using IE7.js, a javascript library that makes IE6 behave like IE7 where javascript and CSS are concerned. Another way could be using a javascript hack that runs only if the browser is IE6 and traverses de DOM modifying the list items...

    In For A Beautiful Web you can find more information regarding IE6-compatible websites.

提交回复
热议问题