码迷,mamicode.com
首页 > 其他好文 > 详细

文字两端对齐

时间:2016-04-23 21:31:48      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:

刚看到的一个问题但是之前有碰到过记录一下

CSS:

.container{
    width:100px;
    height:50px;
    text-align: justify;
    text-justify:inter-ideograph;
    background-color:#428bca;
    color:#fff;
}
.container>span{
    padding-left:100%; 
}

 

HTML:

<div class="container">
   您好呀<span></span>
</div>

 

文字两端对齐

标签:

原文地址:http://www.cnblogs.com/cench/p/5425486.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!