July 09, 2004

读《网站重构》(6):CSS解析CSS的几个使用

为整个站点指定字体:
  • body { font-family: "Lucida Grande", Verdana, Lucida, Arial, Helvetica, sans-serif; }
  • 由多个字母组成的字体名称须用引号包括;
  • 如果排在前面的字体不存在,则使用后面第一个存在的字体。
  • "Lucida Grande"-Mac OS X ,Verdana-Windows ,Lucida---Unix ,Arial----旧windows ,Helvetica----旧Unix
  • 利用冗余解决浏览器不支持继承的问题,如:
    Body { font-family: Verdana, sans-serif; }P, td, ul, ol, ul, li, dl, dt,dd { font-family: Verdana, sans-serif; }
将无序列表前的黑点替换为一个图片:
  • ul.inventory{ list-style: disc url(/path/to/pic.gif) inside; }
对颜色的定义:
  • P { color: red; }
  • P { color: #ff0000; }
  • P { color: #f00; }
  • P { color: rgb(255,0,0); }
  • P { color: rgb(100%,0%,0%); }
Posted by Hilton at July 9, 2004 11:43 PM | TrackBack
Comments

You are invited to visit some relevant pages in the field of- Tons of interesdting stuff!!!

Posted by: at December 2, 2004 02:36 PM

You may find it interesting to check the sites about... Thanks!!!

Posted by: at December 1, 2004 08:27 AM

The best bitches on the web

Posted by: weak sister bitch at November 13, 2004 03:36 AM

研究中。。。。

Posted by: 皇朝娱乐 at July 16, 2004 05:20 PM
Post a comment









Remember personal info?