abstract:<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">&
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>CSS基础-利用浮动完成并列小球</title>
<style>
/* 标签选择器 */
ul {
border: 1px dashed lightsalmon;
margin-top: 0px;
margin-bottom: 0px;
padding-left: 0px;
overflow: hidden;
padding: 10px;
}
/* 层级选择器 */
ul li {
list-style-type: none;
width: 40px;
height: 40px;
background-color: brown;
float: left;
border-radius: 50%;
/*可以把块状变成圆球*/
text-align: center;
line-height: 40px;
margin-left: 5px;
box-shadow: 2px 2px 1px black;
}
</style>
<!-- <link rel="stylesheet" href="staic/css/style01.css"> -->
</head>
<body>
<ul>
<li class="Kris">1</li>
<li id="bg-green">2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>
<li>9</li>
</ul>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>CSS基础-利用浮动完成并列小球</title>
<style>
/* 标签选择器 */
ul {
border: 1px dashed lightsalmon;
margin-top: 0px;
margin-bottom: 0px;
padding-left: 0px;
overflow: hidden;
padding: 10px;
}
/* 层级选择器 */
ul li {
list-style-type: none;
width: 40px;
height: 40px;
background-color: brown;
float: left;
border-radius: 50%;
/*可以把块状变成圆球*/
text-align: center;
line-height: 40px;
margin-left: 5px;
box-shadow: 2px 2px 1px black;
}
</style>
<!-- <link rel="stylesheet" href="staic/css/style01.css"> -->
</head>
<body>
<ul>
<li class="Kris">1</li>
<li id="bg-green">2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>
<li>9</li>
</ul>
</body>
</html>
Correcting teacher:天蓬老师Correction time:2019-01-19 15:52:38
Teacher's summary:用这个做浮动案例并不是很好, 这个适合学习选择器