
~~~
<style>
*{margin:0;padding:0}
.nav{
background: #eee;
height: 50px;
}
.nav-wrap{
position: relative;
height:50px;
width:1000px;
line-height: 50px;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.left,.right{
position: absolute;
height:50px;
width:100px;
top:0px;
display: inline-flex;
align-items:center;
font-size: 12px;
}
.left{
left:0px;
}
img{
width: 19px;
height:19px;
}
.right{
right:0px;
}
a{
text-decoration: none;
color:black;
}
.center>a{
font-size: 16px;
}
.left>span,.right>span{
margin-left:5px;
}
</style>
</head>
<body>
<div class="nav">
<div class="nav-wrap">
<div class="left">
<img src="images/location.png" alt="">
<span>深圳</span>
<span><切换></span>
</div>
<div class="center">
<a href="#">首页</a>
<a href="#">首页</a>
<a href="#">首页</a>
</div>
<div class="right">
<img src="images/adm.png" alt="">
<span>个人中心</span>
</div>
</div>
</div>
</body>
~~~
- html-css
- 第一节 外部样式表
- 第二节 元素选择器
- 第三章 盒子模型
- 第四章 html标签的分类
- 第五章 css选择器
- 第六章 权重
- 第七章 css基本样式
- 第一节 背景
- 第二节 文本
- 第三节 字体
- 第四节 链接
- 第五节 列表(针对ul)
- 第六节 边框
- 第七节 简单表格
- 第八节 nvvm
- 第九节 跨越列的表格
- 第十节 跨越行的表格
- 第十一节 有间隔的表格
- 第十二节 opacity透明度
- 第八章 css样式的继承
- 进阶教程
- 1.flex教程
- flex补充1
- flex补充2
- 2.grid布局
- css
- 第一节 box-sizing
- 第二节 float
- 第三节 position
- 第四节 导航栏
- iconfont的使用
- 第五节 搜索功能的实现
