IE6/7BUG之OL有序列表没顺序
BUG描述:
有序列表OL的元素LI在解决了haslayout后序号不会增加,一直是1,1,1 ...,正常是1,2,3...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <meta name="robots" content="noindex"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Disappearing List Background Bug Demo - hasLayout.net by Zoffix Znet</title> <style type="text/css"> body { background: #fff; color: #000; } li{ zoom: 1; } </style> <ol> <li><a href="#">BUG</a></li> <li><a href="#">Two</a></li> <li><a href="#">Three</a></li> </ol>
BUG图
BUG解决:
添加:
li { display: list-item; }