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

CSS样式表
简单学习CSS网页布局(初学者)
8个简单实用的CSS秘诀
Webjx收集基于CSS JS设计50款优秀的导航菜单
css word-break word-wrap 前台显示自动换行
css 自动换行 强制换行属性 (firefox+ie)
css 教学实例 漂亮的搜索框
CSS 折叠的菜单实现代码
关于html元素的 width属性无效果的解决方法
css 相对定位 绝对定位 浮动 分析
css 滑动门技术的介绍及实例分享
负边距创建自适应宽度的流体布局的实现方法
有利于SEO的DIV+CSS的命名规则小结
css盒子模型 css margin 外边框合并
css 优先级关系
input 文本框 文字垂直居中对齐 ie firefox
css margin-left在IE6下的问题的解决方法
IE8样式不正确显示问题
div中子div在firefox ie 水平居中对齐
css 不兼容性问题小结
CSS 3D立方体制作

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-12   浏览: 141 ::
收藏到网摘: 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;}