网页布局技巧:CSS文件设计初始化代码
来源:互联网 发布:时时彩平台源码出租 编辑:程序博客网 时间:2024/06/16 06:16
网页布局技巧:CSS文件设计初始化代码(css设计模板)
1.
charset ”utf-8″;
html {background:url(/www/pic/head_back.gif) repeat-x top #FFF}
body {width:920px;font:12px Arial;margin:0 auto;padding:0;color:#000;}
a{color:#000; text-decoration:none}
a:hover {color:#f00; text-decoration:underline}
ul,ol,p,dl{margin:0;padding:0}
ul,ol,dl{height:100%;overflow:hidden}
li{list-style:none}
img {border:none}
h1,h2,h3,h4{font:12px Verdana;margin:0;padding:0}
input {font:12px Verdana}
2.
/*为背景定义了颜色*/
/*html {
color:#000;
background:#FFF;
}*/
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td {
margin:0;
padding:0;
}
/*合并边线,边线空间至零.*/
table {
border-collapse:collapse;
border-spacing:0;
}
/*清除边线*/
fieldset, img {
border:0;
}
address, caption, cite, code, dfn, em, strong, th, var {
font-style:normal;
font-weight:normal;
}
li {
list-style:none;
}
caption, th {
text-align:left;
}
h1, h2, h3, h4, h5, h6 {
font-size:100%;
font-weight:normal;
}
/*添加空字符清除融合*/
q:before, q:after {
content:”;
}
abbr, acronym {
border:0;
font-variant:normal;
}
/* to preserve line-height and selector appearance */
sup {
vertical-align:text-top;
}
sub {
vertical-align:text-bottom;
}
input, textarea, select {
font-family:inherit;
font-size:inherit;
font-weight:inherit;
}
/*to enable resizing for IE*/
/*在ie下重定义*/
input, textarea, select {
*font-size:100%;
}
/*because legend doesn’t inherit in IE */
/*IE下legend不继承 */
legend {
color:#000;
1.
charset ”utf-8″;
html {background:url(/www/pic/head_back.gif) repeat-x top #FFF}
body {width:920px;font:12px Arial;margin:0 auto;padding:0;color:#000;}
a{color:#000; text-decoration:none}
a:hover {color:#f00; text-decoration:underline}
ul,ol,p,dl{margin:0;padding:0}
ul,ol,dl{height:100%;overflow:hidden}
li{list-style:none}
img {border:none}
h1,h2,h3,h4{font:12px Verdana;margin:0;padding:0}
input {font:12px Verdana}
2.
/*为背景定义了颜色*/
/*html {
color:#000;
background:#FFF;
}*/
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td {
margin:0;
padding:0;
}
/*合并边线,边线空间至零.*/
table {
border-collapse:collapse;
border-spacing:0;
}
/*清除边线*/
fieldset, img {
border:0;
}
address, caption, cite, code, dfn, em, strong, th, var {
font-style:normal;
font-weight:normal;
}
li {
list-style:none;
}
caption, th {
text-align:left;
}
h1, h2, h3, h4, h5, h6 {
font-size:100%;
font-weight:normal;
}
/*添加空字符清除融合*/
q:before, q:after {
content:”;
}
abbr, acronym {
border:0;
font-variant:normal;
}
/* to preserve line-height and selector appearance */
sup {
vertical-align:text-top;
}
sub {
vertical-align:text-bottom;
}
input, textarea, select {
font-family:inherit;
font-size:inherit;
font-weight:inherit;
}
/*to enable resizing for IE*/
/*在ie下重定义*/
input, textarea, select {
*font-size:100%;
}
/*because legend doesn’t inherit in IE */
/*IE下legend不继承 */
legend {
color:#000;
}
原文地址:http://www.mianfeimoban.com/jianzhang_cyruanjian/cssjc/20120319/10873.html 欢迎转载!
- 网页布局技巧:CSS文件设计初始化代码
- 网页布局CSS初始化代码
- DIV+CSS网页设计常用布局代码
- DIV+CSS网页设计常用布局代码
- CSS文件设计初始化代码(css设计模板)
- 网页设计技巧:CSS布局调试的有效方法v
- 网页布局CSS技巧-Web设计必知
- 网页css+div布局技巧
- DIV+CSS网页布局技巧
- CSS 网页右下角布局代码
- DIV+CSS网页制作布局技巧学习
- CSS网页布局编码小技巧整理
- html+css网页布局技巧积累
- 精简CSS文件 使您的CSS网页布局代码更专业
- 网页设计基础:Div+CSS布局入门教程
- 网页设计基础:Div+CSS布局入门教程
- DIV+CSS常用的网页布局代码
- DIV+CSS常用的网页布局代码
- SEDA简介与源码解读(一)
- exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle解决办法
- [被坑纪念][转帖]Python函数默认参数的一个小陷阱
- 程序员,独立思想,新人
- 【Android组件学习】Spinner的基本用法和Adapter的作用
- 网页布局技巧:CSS文件设计初始化代码
- Applications are expected to have a root view controller at the end of application解决办法
- ESB学习笔记(Spring Integration实战)
- 21.python对象的浅拷贝和深拷贝
- Jsp文件下载
- HTML5的出现是否会让Flash和Silverlight无用武之地?
- 经典算法详解 之 递归算法
- Java关机程序
- 纯css打造绿色横向二级导航菜单代码