文字两边加横线

发布时间:2020-08-24 20:48:33 作者:王上京小伙
来源:网络 阅读:543

<div id="login_frame">

    <div class="with-line">推荐使用以下浏览器</div>

</div>




<style type="text/css">

/* 

文字两边横线

 */

#login_frame .with-line {

width:462px;font-size: 16px;

color: #000;

margin: 0 auto;

position: relative;

text-align: center

}


#login_frame .with-line:before {

content: "";

border-top: 1px solid #000;

display: block;

position: absolute;

width: 150px;

top: 10px;

left: 0

}


#login_frame .with-line:after {

content: "";

border-top: 1px solid #000;

display: block;

position: absolute;

width: 150px;

top: 10px;

right: 0

}

</style>

推荐阅读:
  1. css实现中间文字,两边横线标题效果的方法是什么
  2. DedeCMS实现文章列表每5隔行加横线的方法

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

横线 文字两边

上一篇:axios对请求各种异常情况处理的封装方法

下一篇:AngularJS监听ng-repeat渲染完成的方法

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》