返回 css浮动元素...... 登陆

css浮动元素案例/2019/04/21

源逸 2019-04-21 20:24:06 226

<!DOCTYPE html>

<html>

<head>

<title>css浮动案例/块级元素,行内元素浮动/2019/04/21/ 19:30</title>

<meta charset="utf-8">

<style type="text/css">

*{padding:0px;margin:0px;font-size:18px;color:#fff;}

ul li{list-style:none;}

dl dd{list-style:none;}

a:link{text-decoration:none;}

a:link{color:#fff;}

a:hover{color:#ccc;}

.head{

width:auto;

height:60px;

background-color:#000000;

}

.head-top ul li{

margin:0px 15px;

line-height:60px;

text-align:center;

float:left;


}

/* .clear{clear:both;} */

</style>

</head>

<body>

<div class="head">

<div class="head-top">

<ul>

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

<li><a href="#">社区问答</a></li>

<li><a href="#">资源下载</a></li>

<li><a href="#">技术文章</a></li>

</ul>

</div>

</div>

</body>

</html>



最新手记推荐

• 用composer安装thinkphp框架的步骤 • 省市区接口说明 • 用thinkphp,后台新增栏目 • 管理员添加编辑删除 • 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消 回复 发送
  • PHP中文网