Home > Article > Web Front-end > How to use css font-stretch attribute
css The font-stretch attribute can stretch and deform the current font-family. All mainstream browsers do not support the font-stretch attribute.
How to use the css font-stretch attribute?
Function: It can stretch and deform the current font-family.
Note: All major browsers do not support the font-stretch attribute.
css font-stretch property usage example
<!DOCTYPE html> <html> <head> <style> #div1 {font-stretch:condensed;} #div2 {font-stretch:expanded;} </style> </head> <body> <p><b>Note:</b> No browsers support the font-stretch property.</p> <div> Some normal text in a div element. </div> <div id="div1"> Some condensed text in a div element. </div> <div id="div2"> Some expanded text in a div element. </div> </body> </html>
Effect output:
The above is the detailed content of How to use css font-stretch attribute. For more information, please follow other related articles on the PHP Chinese website!