基本的web页面样式(就是一开始把所有的基础样式都规定好)
来源:互联网 发布:java后端是做什么的 编辑:程序博客网 时间:2024/05/21 19:50
body,
html,
div,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
ol,
dl,
dt,
dd,
table,
button,
tr,
td,
form,
input,
textarea,
button,
th,
td,
img,
b,
a,
span {/*上面所有标签都设置没有边界,没有填充,即内外边界都是0*/
margin: 0;
padding: 0;
}
a {/*a标签不要文本修饰,下划线等等都不要*/
text-decoration: none;
}
li {/*li列表项前没有什么修饰,圆、数字等都不要*/
list-style: none;
}
img {/*没有边框*/
border: none;
}
input,
textarea,
button {/*没有边框*/
border: none;
}
i,
em {/*em给一个字体正常的样式*/
font-style: normal;
}
/* define自定义样式
------------------------------------------------------------------------------------------------------------------------------------*/
body {
font-size: 14px;
font-family: "微软雅黑";
color: #999;
}
.zldx_fl {
float: left;/*向左悬浮*/
}
.zldx_fr {
float: right;/*向右悬浮*/
}
.zldx_wrap {
width: 1200px;/*宽度1200px*/
margin: 0 auto;
}
.zldx_clear {
clear: both;/*清除所有的样式*/
}
.zldx_clearfix:after {
content: "";
height: 0;
font-size: 0;
overflow: hidden;
display: block;
clear: both;
visibility: hidden;
}
.zldx_clearfix {
*zoom: 1;/*缩放比例为1*/
}
/* common公用样式
-------------------------------------------------------------------------------------------------------------------------------------*/
.zldx_header {
height: 80px;/*高度*/
background: #003e6e;
color: #fff;
}
.zldx_header h1 {
line-height: 80px;/*行高*/
margin-left: 10px;
font-size: 30px;
font-weight: normal;
}
.zldx_header a > img {
padding-top: 22px;/*a下的img的距上面的距离*/
}
.zldx_header ul {
line-height: 80px;
margin: 0 86px;
}
.zldx_header ul > li {
float: left;
font-size: 16px;
margin-right: 30px;
}
.zldx_header ul > li > a {
color: #fff;
}
.zldx_header .icon {
color: #fff;
font-size: 18px;
line-height: 36px;
}
.zldx_header .icon i {
margin-left: 8px;
}
.zldx_header form input {
width: 180px;
height: 20px;
vertical-align: middle;
display: inline-block;
}
.zldx_header form button {
text-align: center;
width: 40px;
height: 20px;
vertical-align: middle;
display: inline-block;
background: #fff;
}
html,
div,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
ol,
dl,
dt,
dd,
table,
button,
tr,
td,
form,
input,
textarea,
button,
th,
td,
img,
b,
a,
span {/*上面所有标签都设置没有边界,没有填充,即内外边界都是0*/
margin: 0;
padding: 0;
}
a {/*a标签不要文本修饰,下划线等等都不要*/
text-decoration: none;
}
li {/*li列表项前没有什么修饰,圆、数字等都不要*/
list-style: none;
}
img {/*没有边框*/
border: none;
}
input,
textarea,
button {/*没有边框*/
border: none;
}
i,
em {/*em给一个字体正常的样式*/
font-style: normal;
}
/* define自定义样式
------------------------------------------------------------------------------------------------------------------------------------*/
body {
font-size: 14px;
font-family: "微软雅黑";
color: #999;
}
.zldx_fl {
float: left;/*向左悬浮*/
}
.zldx_fr {
float: right;/*向右悬浮*/
}
.zldx_wrap {
width: 1200px;/*宽度1200px*/
margin: 0 auto;
}
.zldx_clear {
clear: both;/*清除所有的样式*/
}
.zldx_clearfix:after {
content: "";
height: 0;
font-size: 0;
overflow: hidden;
display: block;
clear: both;
visibility: hidden;
}
.zldx_clearfix {
*zoom: 1;/*缩放比例为1*/
}
/* common公用样式
-------------------------------------------------------------------------------------------------------------------------------------*/
.zldx_header {
height: 80px;/*高度*/
background: #003e6e;
color: #fff;
}
.zldx_header h1 {
line-height: 80px;/*行高*/
margin-left: 10px;
font-size: 30px;
font-weight: normal;
}
.zldx_header a > img {
padding-top: 22px;/*a下的img的距上面的距离*/
}
.zldx_header ul {
line-height: 80px;
margin: 0 86px;
}
.zldx_header ul > li {
float: left;
font-size: 16px;
margin-right: 30px;
}
.zldx_header ul > li > a {
color: #fff;
}
.zldx_header .icon {
color: #fff;
font-size: 18px;
line-height: 36px;
}
.zldx_header .icon i {
margin-left: 8px;
}
.zldx_header form input {
width: 180px;
height: 20px;
vertical-align: middle;
display: inline-block;
}
.zldx_header form button {
text-align: center;
width: 40px;
height: 20px;
vertical-align: middle;
display: inline-block;
background: #fff;
}
0 0
- 基本的web页面样式(就是一开始把所有的基础样式都规定好)
- web页面化工作的前期基础学习(四)——HTML样式
- primefaces对于样式表的特殊规定
- 让网页所有的样式都变成灰色
- cursor的所有样式
- 页面的一些样式
- 登录页面的样式
- HTML5基本页面样式
- 管理好自己的样式
- VC 所有的窗口样式
- VC 所有的窗口样式
- VC 所有的窗口样式
- VC 所有的窗口样式
- W3CHTML的所有样式解析
- css样式基础之样式的引入
- 把html做成jsp并抽取其中的css样式和js 样式和js都要求分包
- [痛苦经历] CSS样式 -> 关于WEB页面的强制分页
- CSS的基本样式总结(一)
- 学习笔记
- 飞机游戏场景实现过程
- Selenium学习笔记1--选择浏览器,定位网页
- 详解CoordinatorLayout
- 1.Two Sum 难度:easy
- 基本的web页面样式(就是一开始把所有的基础样式都规定好)
- cocos2d-x--->飞机大战第一天0905
- 数组
- 7. Reverse Integer *
- 怎么判断一个数是否为完全平方数
- 欢迎使用CSDN-markdown编辑器
- cocos2d-x视频教程
- KNN、k-近邻算法,python
- C#中ref和out到底有什么用?什么时候会用到呢?