页面头部代码练习1
2017-12-21 08:23
197 查看
header{
background-color: rgba(0,0,0,0.4);
}
nav{
height:50px;
background:#696969;
}
nav ul{
list-style-type:none ;
margin:0;
float:right;
}
nav div a {
text-decoration: none;
color:#fff;
margin-left: 30px;
font-size:20px;
font-weight:bold ;
}
nav ul li,nav .logo{
display:inline-block;
line-height: 50px;
float:left ;
margin-right: 30px;
letter-spacing:1px ;
}
nav ul li a{
text-decoration: none;
line-height:inherit;
display: inline-block;
color:#fff;
}
nav ul li .active{
border-bottom: 1px solid #fff;
}
#banner{
background-color: rgba(0,0,0,0.2);
height:660px;
}
#banner .inner{
width:300px ;
text-align:center;
margin:0 auto;
position :relative;
top:160px;
color:#fff;
}
#banner .inner p{
font-size:18px;
letter-spacing: 1px;
line-height: 40px;
}
#banner .inner h1{
font-family:"Times New Roman", Times, serif;
border-top:2px solid #fff;
border-bottom:2px solid #fff;
padding:10px 0;
}
#banner .inner button{
border:none;
padding:15px 45px;
background-color:#333;
color:#eee;
border-radius:5px;
}
#banner .inner .more{
margin-top: 220px;
}
#banner{
/*background-color:#f5f5dc;*/
/*background-image:url(img/fjtt.jpg);
background-repeat:no-repeat;
background-attachment:50% 80%;
background-size:cover;*/
background-image:url("../img/58d208f635753.jpg");
background-repeat:no-repeat;
background-attachment:fixed;
/*background-position:50% 80%;*/
background-size:cover;
}
background-color: rgba(0,0,0,0.4);
}
nav{
height:50px;
background:#696969;
}
nav ul{
list-style-type:none ;
margin:0;
float:right;
}
nav div a {
text-decoration: none;
color:#fff;
margin-left: 30px;
font-size:20px;
font-weight:bold ;
}
nav ul li,nav .logo{
display:inline-block;
line-height: 50px;
float:left ;
margin-right: 30px;
letter-spacing:1px ;
}
nav ul li a{
text-decoration: none;
line-height:inherit;
display: inline-block;
color:#fff;
}
nav ul li .active{
border-bottom: 1px solid #fff;
}
#banner{
background-color: rgba(0,0,0,0.2);
height:660px;
}
#banner .inner{
width:300px ;
text-align:center;
margin:0 auto;
position :relative;
top:160px;
color:#fff;
}
#banner .inner p{
font-size:18px;
letter-spacing: 1px;
line-height: 40px;
}
#banner .inner h1{
font-family:"Times New Roman", Times, serif;
border-top:2px solid #fff;
border-bottom:2px solid #fff;
padding:10px 0;
}
#banner .inner button{
border:none;
padding:15px 45px;
background-color:#333;
color:#eee;
border-radius:5px;
}
#banner .inner .more{
margin-top: 220px;
}
#banner{
/*background-color:#f5f5dc;*/
/*background-image:url(img/fjtt.jpg);
background-repeat:no-repeat;
background-attachment:50% 80%;
background-size:cover;*/
background-image:url("../img/58d208f635753.jpg");
background-repeat:no-repeat;
background-attachment:fixed;
/*background-position:50% 80%;*/
background-size:cover;
}
相关文章推荐
- 科讯各页面头部代码标签
- 站内优化之页面头部代码规范化的重要性
- JSP 页面代码练习
- window 2003主机所有网站页面都在头部被插入恶意代码,但代码中却找不到可能原因
- JSP页面代码练习
- 页面代码练习
- 移动前端开发中添加一些webkit专属的HTML5头部标签,帮助浏览器更好解析html代码,更好地将移动web前端页面表现出来。本文整理一些常用的meta标签
- jsp页面代码练习
- JSP页面练习代码(一)
- JSP页面练习代码(二)
- php输出XML页面头部代码
- 通过AJAX调用页面后台代码方法实现省级三级联动效果 (简单练习)前台
- JSP页面代码练习(三)
- 基于 vue2 + vuex 构建一个具有 45 个页面的大型单页面应用 他人代码,借鉴
- java后台调用JS代码判断浏览器版本是否低于IE9,低版本跳转不同页面
- 每五张图片显示在页面一行的js 代码
- 如下代码可以实现点击页面获得被点击元素的id
- DIP及CV代码练习(1):图像16倍下采样
- 练习代码(二)隐藏具体实现
- PHP登陆后跳转到登陆前页面实现思路及代码