Analyze the usage and example tutorials of text-transform
Syntax:
text-transform : none | capitalize | uppercase | lowercase
Parameters:
none : No transformation occurs
capitalize: Convert the first letter of each word to uppercase, and no conversion will occur
uppercase: Convert to uppercase
lowercase: Convert to lowercase
Instructions:
Retrieve or set the case of text in object .
The corresponding script feature is textTransform. Please see other books I have written.
text-transform and font-variantDifference
text-transform and font-variant can convert English text to upper and lower case. 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.
Example
Edit
div { text-transform : none; } div { text-transform : capitalize; } div { text-transform : uppercase; } div { text-transform : lowercase; }
Note: 1. Use text-transform only for English and invalid for Chinese characters
2.Use text-transform You can use dreamweaver to see the instant effect
text-transform example
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>text-transform_CSS参考手册_web前端开发参考手册系列</title> <style> .capitalize span{text-transform:capitalize;} .uppercase span{text-transform:uppercase;} .lowercase span{text-transform:lowercase;} </style> </head> <body> <ul> <li> <strong>将每个单词的首字母转换成大写</strong> <div>原 文: <span>how do you do.</span></div> <div>转换后: <span>how do you do.</span></div> </li> <li> <strong>转换成大写</strong> <div>原 文: <span>how do you do.</span></div> <div>转换后: <span>how do you do.</span></div> </li> <li> <strong>转换成小写</strong> <div>原 文: <span>HOW ARE YOU.</span></div> <div>转换后: <span>HOW ARE YOU.</span></div> </li> </ul> </body> </html>
The above is the detailed content of Analyze the usage and example tutorials of text-transform. For more information, please follow other related articles on the PHP Chinese website!

Here's a container with some child elements:

Flyout menus! The second you need to implement a menu that uses a hover event to display more menu items, you're in tricky territory. For one, they should

"The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect."- Tim Berners-Lee

In this week's roundup: datepickers are giving keyboard users headaches, a new web component compiler that helps fight FOUC, we finally get our hands on styling list item markers, and four steps to getting webmentions on your site.

The short answer: flex-shrink and flex-basis are probably what you’re lookin’ for.

In this week's look around the world of web platform news, Google Search Console makes it easier to view crawled markup, we learn that custom properties

The IndieWeb is a thing! They've got a conference coming up and everything. The New Yorker is even writing about it:


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Mac version
God-level code editing software (SublimeText3)