当前位置: 首页 > 图文教程 > 网页制作 > CSS样式表 > common.css文件 网页设计常用的基本css控制

CSS样式表
CSS教程之css选择器 、属性、值
CSS的color颜色使用说明
firefox css自动换行的实现方法
css支持标准的图片垂直居中
css+table 1px边框单元格
css之使table也能overflow:hidden
几个常用经典的css技巧
css 跨浏览器实现float:center
css浏览器不兼容原因分析及解决办法
iframe transparent透明背景方法
有衬线字体与无衬线字体比较
div+css在思路和流程上实现结构与表现的分离分析
css教程 css和document
层盖住下拉列表框问题解决方案
css样式之区分input是按钮还是文本框的方法
CSS expression控制图片自动缩放效果代码[兼容 IE,Firefox]
谈谈网页设计中的字体应用Font Set
XHTML标签的自关闭写法的坏处分析
顶级经典常用的CSS属性收集整理
10条影响CSS渲染速度的写法与使用建议

CSS样式表 中的 common.css文件 网页设计常用的基本css控制


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-12   浏览: 168 ::
收藏到网摘: n/a


代码如下:

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  /* 设置table 的样式*/
{
    border-collapse:collapse;
    border-spacing:0;
}
fieldset, img
{
   border:0;
}
em, strong
{
   font-style:normal;
   font-weight:normal;
}
li
{
    list-style:none;
}
h1, h2, h3, h4, h5, h6
{
   font-size:100%;
   font-weight:normal;
}
body, input, button, textarea
{
    font-size:12px;
    font-family:Arial, Helvetica, sans-serif;
}
a{ text-decoration:none;outline:none;}
a:hover{   cursor:pointer;}
th, td{vertical-align:top;}