越来越有意思了!交作业
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>列表</title>
<style type="text/css">
ul{
margin: 0;
padding: 0;
}
li{
list-style: none;
padding: 15px;
text-indent: 35px;
float: left;
margin-right: 3%;
width: 20%;
min-width: 99px; /*min-width 属性设置元素的最小宽度。*/
}
a{
text-decoration: none;
color: red;
}
li:first-child{
background:beige url("http://xxx.fishc.com/forum/201701/23/114912gfpp4bc9by93tw4f.png")no-repeat 10px 50%;
}
li:nth-child(2){
background:beige url("http://xxx.fishc.com/forum/201701/25/095359s33kjk8ihr0r5dk5.png")no-repeat 10px 50%;
}
li:nth-child(3){
background:beige url("http://xxx.fishc.com/forum/201701/23/114912gfpp4bc9by93tw4f.png")no-repeat 10px 50%;
}
li:last-child{
background:beige url("http://xxx.fishc.com/forum/201701/25/095359s33kjk8ihr0r5dk5.png")no-repeat 10px 50%;
margin-right: 0;
}
li:hover{
background-color: #99FF33;
}
</style>
</head>
<body>
<ul>
<li><a href="http://bbs.fishc.com/forum-337-1.html">小天才养殖场</a></li>
<li><a href="http://bbs.fishc.com/forum-33-1.html">吹水阁</a></li>
<li><a href="http://bbs.fishc.com/forum.php?mod=forumdisplay&fid=171&filter=typeid&typeid=637">Web开发</a></li>
<li><a href="http://bbs.fishc.com/forum-310-1.html">Qt开发</a></li>
</ul>
</body>
</html>
骗回复
学习学习
学习
伪类选择器
看看
非常好
今天继续学习!!!
交作业!这期内容非常有意思!
{:10_256:}加油
学习
那个白点是怎么消失的,有讲解吗?
{:5_91:}
<doctype html>
<html>
<meta charset='utf-8'>
<head>
<title>li-hover</title>
<style type='text/css'>
ul{padding:0;margin:0;}
li{height:30;
width:200px;
text-indent:60px;
margin:7px 0;
color:#FFFFFF;
list-style:none;}
li:first-child{background:#C0392B url(check.png) no-repeat 10px 60%;}
li:nth-child(2){background:#E74C3C url(shenshou.png) no-repeat 10px 80%;}
li:nth-child(3){background:#C0392B url(check.png) no-repeat 10px 80%;}
li:last-child{background:#E74C3C url(shenshou.png) no-repeat 10px 40%;}
li:hover{background-color:#99FF33}
</style>
</head>
<body>
<ul>
<li>QT开发</li>
<li>WEB网页开发</li>
<li>吹水阁</li>
<li>小天才养殖场</li>
</ul>
</body>
</html>
厉害了
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>031</title>
<style type="text/css">
ul{
margin:0;
padding:0;
}
li{
float:left;
padding:15px;
margin:5px 0;
text-indent:40px;
color:#FFF;
box-sizing:border-box;
width: 233px;
margin-right:33px;
min-width:99px;
}
li:first-child{
background:#C0392B url(tortoise.png) no-repeat 10px 50%;
}
li:nth-child(2){
background:#E74C3C url(check.png) no-repeat 10px 50%;
}
li:nth-child(3){
background:#C0392B url(tortoise.png) no-repeat 10px 50%;
}
li:last-child{
margin-right:0;
background:#E74C3C url(check.png) no-repeat 10px 50%;
}
li:hover{
background-color:#99FF33;
}
</style>
</head>
<body>
<ul>
<li>小天才養殖場</li>
<li>吹水閣</li>
<li>Web開發</li>
<li>Qt開發</li>
</ul>
</body>
</html>
学习一下
{:7_146:}
好好看好好学
{:10_254:}