css中文字对其

在各个字体中间用空格隔开,再用word-spacing解决

 

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        .two-w{word-spacing: 24px;}
        .three-w{word-spacing: 0px;}
        .four-w{}
    </style>
</head>
<body>
    <p class="two-w">你 好</p>
    <p class="three-w">你 们 好</p>
    <p class="four-w">大家都好</p>
</body>
</html>
View Code

 

posted @ 2015-03-16 10:51  zhouyan_jsj  Views(153)  Comments(0Edit  收藏  举报