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

- 微信公众号

浅绿 = 支持
红色 = 不支持
粉色 = 部分支持
IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|
6.0-8.0 | 2.0+ | 4.0-26.0 | 3.1-6.1 | 15.0+ | 3.2-7.0 | 2.1-4.4.4 | 18.0-26.0 |
9.0+ | 27.0+ | 7.0+ | 7.1+ | 27.0+ |
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title></title> <style> h1 { margin: 10px 0; font-size: 16px; } div { overflow: hidden; width: 10ch; background: #ccc; } </style> </head> <body> <h1>定义一个宽度正好能装下10个0的容器:</h1> <div>0000000000</div> </body> </html>
点击 "运行实例" 按钮查看在线实例
效果图:
推荐手册