HTML页面CSS导航布局

Original 2019-03-02 18:56:39 306
abstract:<!DOCTYPE html><html><head> <title>html+css实战布局</title> <link rel="stylesheet" type="text/css" href="style.css"> <link rel="st

<!DOCTYPE html>

<html>

<head>

<title>html+css实战布局</title>

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

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

</head>

<body>

<div class="header">

<div class="header-content">

<div class="header-left">

<a href="" class="header-a">中国大陆&nbsp;&nbsp;<i class="fa fa-angle-down"></i></a>

<a href="" style="color:#FF5000">亲,请先登录<i class="fa fa-angle-down"></i></a>

<a href="" class="header-a">免费注册<i class="fa fa-angle-down"></i></a>

<a href="" class="header-a">手机淘宝<i class="fa fa-angle-down"></i></a>

</div>

<div class="header-right">

<a href="" class="header-a">我的淘宝<i class="fa fa-angle-down"></i></a>

<a href=""><span class="fa fa-cart-plus"></span>&nbsp;&nbsp;购物车</a>

<a href="" class="header-a">收藏夹<i class="fa fa-angle-down"></i></a>

<a href=""><span class="fa fa-star"></span>商品分类</a>

<a href="" class="header-a">卖家中心<i class="fa fa-angle-down"></i></a>

<a href="" class="header-a">联系客服<i class="fa fa-angle-down"></i></a>

<a href="" class="header-a">网站导航<i class="fa fa-angle-down"></i></a>

</div>

</div>

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

</div>

</body>

</html>

布局过程中会使用到css常用的知识点,分清楚布局的结构,就能快速搭建出一个简单的页面

Correcting teacher:西门大官人Correction time:2019-03-03 09:45:37
Teacher's summary:导航布局一般使用ul、li,主要是用css控制li的排列方向

Release Notes

Popular Entries