Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> CSS

Thuộc tính CSS font-size-adjust


Sử dụng thuộc tính font-size-adjust để bảo toàn khả năng đọc khi font dự phòng (fallback) xảy ra. Bạn có thể chạy mã sau để triển khai thuộc tính font-size-adjust:

Ví dụ

<!DOCTYPE html> <html>    <head>       <style>          #demo {             font-size-adjust: 0.90;          }       </style>    </head>    <body>       <h2>Heading Two</h2>       <h2>With font-size-adjust property:</h2>       <div class = "demo">          This is demo text.       </div>       <h2>Without font-size-adjust property:</h2>       <div>This is demo text.</div>    </body> </html>