How to use css font-stretch attribute

藏色散人
Release: 2019-05-30 16:45:27
Original
3702 people have browsed it

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template