美文网首页
两端对齐的操作

两端对齐的操作

作者: 咩咩籽 | 来源:发表于2019-07-08 10:56 被阅读0次
<div class="justify">hello, text justify.</div><br/>
<div class="justify"> hello, text justify.<span></span></div><br/>
<div class="justify">两 端 对 齐</div><br/>
<div class="justify">两 端 对 齐<span></span></div>

div.justify {
 text-align: justify;
 width:200px; 
font-size:15px;
 color:red; 
border:1px solid blue; 
height:18px;
}
div.justify > span { 
display: inline-block ; 
padding-left: 100%;
 }

相关文章

网友评论

      本文标题:两端对齐的操作

      本文链接:https://www.haomeiwen.com/subject/dwznhctx.html