©
This document uses PHP Chinese website manual Release
IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|
6.0-8.0 | 2.0-3.5 | 4.0+ | 3.1-4.0 | 15.0+ | 3.2 | 2.1+ | 18.0+ |
9.0+ | 3.6+ | 5.0+ | 4.1+ |
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title>rem_CSS参考手册_web前端开发参考手册系列</title> <meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com, www.doyoe.com" /> <style> html, h1 { font-size: 12px; } p { font-size: 2rem; } </style> </head> <body> <h1>下面的文字将是html定义的字体大小的2倍:</h1> <p>我是html定义的12px的2倍,字体大小为24px</p> </body> </html>
点击 "运行实例" 按钮查看在线实例