Home > Web Front-end > HTML Tutorial > css实现将英文语句第一个单词首字母大写_html/css_WEB-ITnose

css实现将英文语句第一个单词首字母大写_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:27:30
Original
1883 people have browsed it

css实现将英文语句第一个单词首字母大写:
英文语句,通常第一个单词的首字母是大写的,下面就通过代码实例介绍一下如何利用css实现此功能。代码如下:

 

<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="author" content="http://www.51texiao.cn/" /><title>蚂蚁部落</title><style type="text/css"> p.capitalize{  text-transform:capitalize } </style></head><body><p class="capitalize">softwhy.com is the url.</p></body></html>
Copy after login

 

原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=17833

更多内容可以参阅:http://www.softwhy.com/divcss/

 

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