CSS:textTransform属性

日期:2011-12-05    阅读:23   分类:HTML~CSS


text-transform版本:CSS1 继承性:有   

语法:

text-transform : none | capitalize | uppercase | lowercase   

参数:

默认。定义带有小写字母和大写字母的标准的文本。
文本中的每个单词以大写字母开头。
定义仅有大写字母。
定义无大写字母,仅有小写字母。

例子:

<html>
<head>
<script type="text/javascript">
function displayResult()
{
document.getElementById("p1").style.textTransform="capitalize";
}
</script>
</head>
<body>

<p id="p1">This is some text.</p>
<br />

<button type="button" onclick="displayResult()">Convert text</button>

</body>
</html>


本页链接: http://www.scriptlover.com/static/1282-css-textTransform

标签:

相关文章

网友评论

#1: 2012-1-24 18:55:00 by Takeoh.kloses#gmail.com.au

You rellay saved my skin with this information. Thanks!

Leave a comment

 required

 required (Not published)

 required