zoukankan      html  css  js  c++  java
  • 利用:before和:after给段落添加效果的应用实例

    效果1:

    <span class="zy-jt">现场施工安装,1对1管家式服务,基础施工/屏体安装</span>
    .zy-jt:before{
    content: "";
    display: inline-block;
    background: url(../images/mic1.png) no-repeat -5px;
    width: 56px;
    height: 8px;
    vertical-align: middle;
    }
    .zy-jt:after {
    content: "";
    display: inline-block;
    background: url(../images/mic2.png) no-repeat 5px;
    width: 56px;
    height: 8px;
    vertical-align: middle;
    }

    效果2:

    <i class="line"></i>
    .line {
    width: 50px;
    height: 2px;
    background: #ff0000;
    display: block;
    margin: 20px 0;
    position: relative;
    }
    .line:before {
    right: -8px;
    }
    .line:after {
    right: -15px;
    }
    .line:before,.line:after {
    content: "";
    width: 2px;
    height: 2px;
    background: #ff0000;
    display: block;
    position: absolute;
    }
  • 相关阅读:
    有限元方法的核心思想
    由拉格朗日函数推导守恒定律
    codeforces 1181D
    gym 102222 J
    COJ#10C
    已然逝去の夏日泳装
    NC50 E
    codeforces 1147 C
    agc 037 C
    19牛客多校第十场G
  • 原文地址:https://www.cnblogs.com/xinlvtian/p/12972512.html
Copyright © 2011-2022 走看看