- HTML中文网
- 联系QQ:88526
- QQ交流群

- 微信公众号

text-stroke
text-stroke:<' text-stroke-width '> || <' text-stroke-color '>
默认值:看每个独立属性
适用于:所有元素
继承性:有
动画性:看每个独立属性
计算值:看每个独立属性
浅绿 = 支持
红色 = 不支持
粉色 = 部分支持
Values | IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|---|
Basic Support | 6.0-11.0 | 2.0-40.0 | 4.0 -45.0-webkit- | 4.0 -8.0-webkit- | 15.0 -29.0-webkit- | 4.0 -8.3 -webkit- | 2.1 -4.4.4-webkit- | 18.0- 42.0-webkit- |
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title></title> <style> html,body{font:bold 14px/1.5 georgia,simsun,sans-serif;text-align:center;} .stroke h1{margin:0;padding:10px 0 0;} .stroke p{ margin:50px auto 100px;font-size:100px; -webkit-text-stroke:1px #f00; } .copyright,.info{font-style:italic;} </style> </head> <body> <div class="stroke"> <h1>描边的文字:</h1> <p>我是被描了1像素红边的文字</p> </div> </body> </html>
点击 "运行实例" 按钮查看在线实例
效果图:
推荐手册