随笔-9  评论-49  文章-0  trackbacks-0

 

 1 /* 
 2 项目:……
 3 编写:Raven,zhangyang@91vc.com
 4 功能:……
 5 */
 6 
 7 /*====标签元素==========*/
 8 *{margin:0;padding:0}
 9 html{border:0;}
10 body,div,p,th,td,li,dd,a,span{font-size:12px;font-family:Verdana,宋体;word-break:break-all;}
11 body{background:#FFF}
12 ul{list-style:none;}
13 a img{border:0;}/*去除带链接图片的蓝色边框*/
14 p{line-height:160%}
15 
16 /*====链接======*/
17 a{}
18 a:hover{}
19 a.style1{}
20 a.style1:hover{}
21 
22 /*=====页面结构与公共调用========*/
23 .f_l{float:left;}/*向左浮动*/
24 .f_r{float:right;}/*向右浮动*/
25 .c{height:1%;}/*清除浮动用于IE*/
26 .c:after {content: ".";display: block;height:0;clear: both;visibility:hidden;}/*清除浮动用于FireFox*/
27 .ell{overflow:hidden;white-space :nowrap;text-overflow:ellipsis;}/*超出范围的文字以省略号替的换*/
28 .h{height:100%}
29 .dn{display:none}/*消失*/
30 .ac{text-align:center}/*内元素居中*/
31 .ch{cursor:pointer;cursor:hand}/*指针为手形状*/
32 .fwb{font-weight:bold}
posted on 2006-05-13 14:42 Raven 阅读(1092) 评论(5)  编辑  收藏 所属分类: XHTML/CSS

评论:
# re: 我自己的CSS模板 2006-05-16 18:00 | 小邓
是你这个blog上的吗?  回复  更多评论
  
# re: 我自己的CSS模板 2006-05-20 15:29 | Raven
不是,是我做的所有项目上都可以用到的。  回复  更多评论
  
# re: 我自己的CSS模板 2006-05-22 18:26 | 小邓
呵呵.  回复  更多评论
  
# re: 我自己的CSS模板 2007-11-18 01:36 |
连偷懒都不会 哎 可悲啊  回复  更多评论
  
# re: 我自己的CSS模板 2008-09-08 14:36 | 大萝卜
*{margin:0;padding:0}
html{margin:0;padding:0 }这两个有什么区别?

我通常这末写。有什么问题没有?

html {
color:#333;
background:#FFF;
}
body,div,ul,li,p,h1,h2,h3 {
margin: 0;
padding: 0;
}
body {
font: 12px/1.2em "宋体", Verdana, Arial, Helvetica, sans-serif;
text-align: center;
}
h1,h2,h3 {
font-size:100%;
font-weight:normal;
}
ul,li {
list-style: none;
}
img {
border: none;
}
a,a:link,a:visited {
text-decoration:none;
color:#333;
}
a:hover {
color:#09C!important;
}
a:active {
color:#666;
}

  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: