CSS全局公共基础样式定义

在用CSS定义实现界面布局时,需要对全局的元素进行一些公共基础样式的定义,以使界面开发进行的更加方便快捷。参考定义的CSS全局公共基础样式如下:

body                                        {margin:0px;padding:0px;font-size:14px;background-color:#fff;color:#000;font-family:"微软雅黑","宋体";overflow:auto;}

body                                        {background-color:#f6f6f6;}

html,form                                   {margin:0px;padding:0px;}

div, pre, form, fieldset, input, p          {margin:0px;padding:0px;}

dl, dt, dd, ul, ol, li                      {margin:0px;padding:0px;}

h1, h2, h3, h4, h5, h6                      {margin:0px;padding:0px;}

blockquote, embed, object                   {margin:0px;padding:0px;}

ul, ol, dl                                  {list-style:none;}

li,dt,dd                                    {list-style:none;}

img                                         {border:none;}

a                                           {text-decoration:none;}

a:linked                                    {text-decoration:none;}

a:hover                                     {text-decoration:underline;}

.hidden                                     {display:none;}

.clear                                      {clear:both;}

来源: 谢斌个人博客CSS全局公共基础样式定义
转载请以链接形式标明本文地址!本文地址:http://www.xb02.com/article/40/
发表评论

发表评论