| 本帖最后由 杨正 于 2012-7-10 22:30 编辑 
 在生成的网页上,前端的小圆点是用什么属性表示的,怎么去掉
 1、前面有圆点的示例
 
 复制代码<font size="3" face="Verdana" color="#808000"><html>
<body>
<h4>一个无序列表:</h4>
<ul>
  <li>咖啡</li>
  <li>茶</li>
  <li>牛奶</li>
</ul>
</body>
</html></font>
2、前面无圆点的示例
 
 你运行一下代码对比就知道了。复制代码<font size="3" face="Verdana" color="#808000"><html>
<body>
<h4>一个无序列表:</h4>
<ul style="list-style-type: none ">
  <li>咖啡</li>
  <li>茶</li>
  <li>牛奶</li>
</ul>
</body>
</html></font>
 list-style-type 属性是CSS中设置列表项标记的类型,默认值是disc(实心圆), 常用值的有:ul.circle {list-style-type:circle;} ul.square {list-style-type:square;}
 ol.upper-roman {list-style-type:upper-roman;}
 ol.lower-alpha {list-style-type:lower-alpha;}
 
 
 |