您现在的位置是:首页 > 网站制作 > 前端设计

前端设计

CSS3文本(五)—text-stroke文字描边

杨青 2013-08-02前端设计

text-stroke

说明:复合属性。设置或检索对象中的文字的描边。

兼容:目前只有Chrome13.0、safari5.1能支持

语法:text-stroke:[ text-stroke-width ] || [ text-stroke-color ]

text-stroke-width 设置或检索对象中的文字的描边厚度

text-stroke-color 设置或检索对象中的文字的描边颜色

写法:

1)Webkit(Chrome/Safari)内核内型 -webkit-text-fill-color

2)W3C 写法 text-fill-color

我是被描了1像素红边的文字

-webkit-text-stroke:1px #f00;text-stroke:1px #f00;

文章评论