CSS 参考手册
CSS3 font-size-adjust Property
通过指定font-size-adjust属性,浏览器将调整字体大小,无论字体系列("宋体"性质值0.58)
源代码:
点击运行 »
<!DOCTYPE html> <html> <head> <style> .divVerdana { font-family: verdana; } .divTimes { font-family: 'times new roman'; } #div1 { font-size-adjust: 0.58; } #div2 { font-size-adjust: 0.58; } </style> </head> <body> <p><b>Note:</b> Only Firefox supports the font-size-adjust property.</p> <p>Two divs using the same font-size-adjust property:</p> <div id="div1" class="divVerdana"> You control the font size better with the font-size-adjust property. </div> <div id="div2" class="divTimes"> You control the font size better with the font-size-adjust property. </div> <p>The same two divs without the font-size-adjust property:</p> <div class="divVerdana"> You control the font size better with the font-size-adjust property. </div> <div class="divTimes"> You control the font size better with the font-size-adjust property. </div> </body> </html>
运行结果:
点击运行 »