一、 list-style
CSSlist-style属性是设置list-style-type, list-style-image 和 list-style-position
的简写属性
list-style: none;
是否是继承属性 yes
作用:
用来设置列表横向排列list-style: none;
<head>
<meta charset="UTF-8">
<title></title>
<!--CSSlist-style属性是设置list-style-type, list-style-image 和 list-style-position 的简写属性-->
<style type="text/css">
*{
margin: 0;
padding: 0;
}
li{
/*列表list的style属性,设置li的样式*/
list-style: none;
width: 30px;
height: 20px;
background: pink;
}
</style>
</head>
<body>
<ul>
<li>1</li>
<li>1</li>
<li>1</li>
<li>1</li>
<li>1</li>
<li>1</li>
<li>1</li>
<li>1</li>
</ul>
</body>