首页 > 其他 > 详细

text-align: justify 文本对齐

时间:2017-10-25 12:28:52      阅读:185      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        span{
            width: 100px;
            text-align: justify;
            float: left;
        }
        span:after{
            content:‘.‘;
            width: 100%;
            display: inline-block;
            overflow: hidden;
            height: 0;
        }
        input{
            width: 100px;
        }
    </style>
</head>
<body>
    <div class="demo">
        <span>昵称</span><input type="text" style = ‘width: 100px‘><br><br>
        <span>电子邮箱</span><input type="email" style = ‘width: 100px;‘>
    </div>
</body>
</html>

技术分享

 

text-align: justify 文本对齐

原文:http://www.cnblogs.com/moxiaowohuwei/p/7728124.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!