因為這次案子要求必須要一樣,該死的IE7有bug解不出來,外加:last-child、:first-child 選擇符方式不能使用,只好用jquery去解。
轉載自 http://www.java2s.com/Code/HTMLCSS/IE-Firefox/ifltIE7.htm
<!--[if lt IE 7]>
<p>
This text is only seen by IE 6.0, IE 5.5, and IE 5.0, but not IE
7.0. Other browsers just ignore this altogether, since it's
contained in HTML comments.
</p>
<![endif]-->
<!--[if IE 6]>
<p>
This text is only seen by IE 6.0.
</p>
<![endif]-->
<!--[if gt IE 6]>
<p>
This text is only seen by IE 7.0.
</p>
<![endif]-->
last-child、first-child都是用在背景或框線,可以用來當分隔線。而最後一個元素要拿掉,才會是
選單 | 選單 | 選單 而不是
選單 | 選單 | 選單
|
以上,紀錄一下