Archive for the ‘Xhtml/CSS’ Category:

在网页中加载特殊字体

{ Posted on 二 20 2009 by Xiacong }
Categories : Xhtml/CSS
@font-face{      font-family:方正少儿简体;      font-style:normal;      src:url(../dis_fun/line.ttf); } @font-face{font-family:name;src:url(url);sRules} 取值: name:字体名称。任何可能的 font-family 属性的值 url(url):使用绝对或相对 url 地址指定OpenType字体文件 sRules:样式表定义 Read More »

不同浏览器CSS兼容方法

{ Posted on 七 09 2008 by Xiacong }
Categories : Xhtml/CSS
不同浏览器中CSS HACK的使用方法,包括Firefox、Opera、IE、Safari .test{ background-color:#FFFF00;/*所有浏览器*/ *background-color:#FFFF00;/*IE系列*/ _background-color:#FFFF00;/*IE6*//*使用"_"时要注意页面是否使用了DTD或XML申明*/ } html* .test{/*Safari IE7 Opera*/ background-color:#FFFF00; } *+html .test{ background-color:#FFFF00;/*Opera*/ *background-color:#FFFF00;/*IE7*/ } * html .test{/*IE6*/ background-color:#00FFFF } Read More »