返回新浪导航条的制......登陆

新浪导航条的制作

笑淡浮华2019-01-13 20:20:52380

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>新浪导航</title>

<link rel="stylesheet" type="text/css" href="css/index.css">

<link rel="stylesheet" type="text/css" href="css/font-awesome-4.7.0/css/font-awesome.min.css">

<style>

*{margin:0px;padding:0px;}

a{text-decoration:none;color:#000;}

i{color:#FF8500;}

.clear{clear:both;}

.head_up{width:100%;height:5px;background-color:#FF8500;}

.header{width:100%;height:53px;background-color:#FCFCFC;border:1px solid #EDEEF0;}

.header_content{width:1253px;height:53px;margin:0px auto;line-height:53px;text-align:center;}

.header_content a:hover{background:#F6F8F9;}

.header_left{width:400px;height:53px;float:left;}

.left_a1{display:inline-block;width:100px;height:53px;}

.left_a2{display:inline-block;width:120px;height:53px;}

.left_a3{display:inline-block;width:130px;height:53px;}

.header_right{width:600px;height:53px;float:right;}

.right_a1{display:inline-block;width:80px;height:53px;}

.right_a2{display:inline-block;width:100px;height:53px;}

</style>

</head>

<body>

<div class="head_up"></div>

<div class="header">

<div class="header_content">

<div class="header_left">

     <a href="" class="left_a1">设为主页</a>

     <a href="" class="left_a2">手机新浪网</a>

     <a href="" class="left_a3">移动客户端&nbsp;&nbsp;<i class="fa fa-angle-down"></i></a>

</div>

<div class="header_right">

<a href="" class="right_a1">登录</a>

<a href="" class="right_a2">微博&nbsp;&nbsp;<i class="fa fa-angle-down"></i></a>

<a href="" class="right_a2">博客&nbsp;&nbsp;<i class="fa fa-angle-down"></i></a>

<a href="" class="right_a2">邮箱&nbsp;&nbsp;<i class="fa fa-angle-down"></i></a>

<a href="" class="right_a2">网站导航</a>

</div>

</div>

<div class="clear"></div>

</div>


</body>

</html>

老师您好!我在细节的处理上欠缺不少,在本节作业中,我想把header_left中的a链接移动到header_left的最左侧,把header_right中的a链接移动到最右侧,没有实现。总的来说,跟着老师一起敲代码,学习效果还是不错的。

最新手记推荐

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

全部回复(0)我要回复

暂无评论~
  • 取消回复发送