移动端两端对齐支持iPhone6详解编程语言

移动端两端对齐支持iPhone6 
<!DOCTYPE html> 
<html> 
    <head> 
        <meta charset="UTF-8"> 
        <title></title> 
        <style type="text/css"> 
            ul { 
                list-style: none; 
            } 
            li { 
                border-bottom: 1px solid #333333; 
                display: flex; 
                padding-top: 14px; 
                padding-bottom: 14px; 
            }     
            li .text { 
                font-size: 28px; 
                width: 425px; 
                height: 40px; 
                text-align: justify; 
            } 
            /*支持iPhone6的关键伪类*/     
            li .text:after { 
                display: inline-block; 
                width: 425px; 
                content: ''; 
            } 
        </style> 
    </head> 
    <body> 
        <ul> 
            <li><span class="text">平安信用卡天天加油88折</li> 
            <li><span class="text">平安相随-全车人员保障</li> 
            <li><span class="text">110万元全车人员意外险</li> 
        </ul> 
    </body> 
</html> 

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/13918.html

(0)
上一篇 2021年7月19日 16:20
下一篇 2021年7月19日 16:20

相关推荐

发表回复

登录后才能评论