您的位置:首页 > 其它

牛刀小试(一):垂直菜单

2016-04-16 20:20 267 查看
<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>垂直菜单</title>

<style type="text/css">

*{margin: 0;padding: 0;font-size: 15px}

ul{

list-style: none;

width: 100px;

}

a{

text-decoration: none;

display: block;

background-color: #201717;

color: red;

width:100px;

height: 30px;

line-height: 30px;

text-indent: 20px;

}

a:hover{background-color:#EC9A1B; color: #fff;}

</style>

</head>

<body>

<ul>

<li >

<a href="#">首页</a>

</li>

<li >

<a href="#">课程</a>

</li>

<li >

<a href="#">计划</a>

</li>

<li >

<a href="#">文章</a>

</li>

<li >

<a href="#">关于</a>

</li>

</ul>

</body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: