cssletter-spacing属性怎么用?
letter-spacing属性增加或减少字符间的空白(字符间距)。
语法:
letter-spacing:normal|length|inherit;
属性值:
●normal:默认。规定字符间没有额外的空间。
●length:定义字符间的固定空间(允许使用负值)。
●inherit:规定应该从父元素继承letter-spacing属性的值。
说明:该属性允许使用负值,这会让字母之间挤得更紧。
注释:所有浏览器都支持letter-spacing属性。任何的版本的InternetExplorer(包括IE8)都不支持属性值"inherit"。
cssletter-spacing属性示例
<!DOCTYPEhtml>
<html>
<head>
<metacharset="utf-8">
<styletype="text/css">
h1{letter-spacing:-10px}
h3{letter-spacing:normal}
h4{letter-spacing:20px}
</style>
</head>
<body>
<h1>Thisisheader1</h1>
<h3>Thisisheader3</h3>
<h4>Thisisheader4</h4>
</body>
</html>

本文转载自中文网
本文转载自中文网
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/css3-style/c56048.shtml