Introduction and examples of fontVariant in css attributes

零下一度
Release: 2017-06-19 11:17:22
Original
2177 people have browsed it

font-variantPropertiesSets the font for displaying text in small caps. This means that all lowercase letters will be converted to uppercase, but all letters using small caps font will be converted to uppercase. Its font size is smaller compared to the rest of the text.
Value small-caps The browser will display the font of small capital letters.

Syntax:

font-variant : normal | small-caps
Copy after login

Parameters:
normal: normal font
small-caps: small uppercase font
Description:
Set or Retrieve whether the text inobjectis small caps.
The corresponding script feature is fontVariant. Please see other books I have written.

text-transformThe difference between text-transform and font-variant

text-transform and font-variant can both convert English Convert text to uppercase or lowercase. But the only function of font-variant is to convert English text into "small" uppercase text. Note that this is "small". Generally, the font-variant attribute is rarely used. For English case conversion, we use the text-transform attribute instead of the font-variant attribute.

Instance of font-variant attribute

    CSS font-variant 属性示例  
  

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

Copy after login

The above is the detailed content of Introduction and examples of fontVariant in css attributes. 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!