css word-spacing letter-spacing

时间:2014-09-10 12:48:30   收藏:0   阅读:239

word-spacing 只能作用于英文的单词与单词间,对于中文无效

letter-spacing 可以作用于中文。

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
		<style type="text/css">
			p.spread {letter-spacing: 30px;}
		</style>
	</head>
	<body>
		<p class="spread">This is some text.哈哈哈哈哈哈哈</p>
		<p class="tight">This is some text.This is some text.</p>
	</body>
</html>


原文:http://my.oschina.net/u/234018/blog/311942

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!