©
This document uses PHP Chinese website manual Release
1in = 2.54cm = 25.4 mm = 101.6q = 72pt = 6pc = 96px
示例代码:
div { font-size: 10mm; } p { height: 100mm; }
IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|
6.0+ | 2.0+ | 4.0+ | 3.1+ | 3.5+ | 3.2+ | 2.1+ | 18.0+ |
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title>mm_CSS参考手册_web前端开发参考手册系列</title> <meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com, www.doyoe.com" /> <style> h1{margin:10px 0;font-size:16px;} div{width:10cm;background:#eee;} p{margin:0;padding:0;line-height:150%;} </style> </head> <body> <h1>定义一个宽度为100mm的容器:</h1> <div> <p>这是一个宽度为100mm的容器</p> </div> </body> </html>
点击 "运行实例" 按钮查看在线实例