Home  >  Article  >  Web Front-end  >  How to use css font-stretch attribute

How to use css font-stretch attribute

藏色散人
藏色散人Original
2019-05-30 16:45:103628browse

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 css 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:

How to use css font-stretch attribute

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn