zoukankan      html  css  js  c++  java
  • 纯CSS气泡框实现方法探究

    <style><!--
    .tag{
           200px;
        height: 100px;
        border: 2px solid #CCC;
        position: relative;
        background-color: #FFF;
        border-radius: 10px;
        text-align: center;
        line-height:100px
    }
    .tag:before,.tag:after{
            content: "";
        display: block;
        border- 20px;
        position: absolute;
        bottom: -40px;
        left: 12px;
        border-style: solid dashed dashed;
        border-color: #CCC transparent transparent;
        font-size: 0;
        line-height: 0;
    }
    .tag:after{
        bottom: -37px;
        border-color: #FFF transparent transparent
    }
    --></style>
    <div class="tag">CSS QQ气泡框</div>

    <style><!--
    .tag{
            200px;
        height: 100px;
        border: 2px solid #CCC;
        position: relative;
        background-color: #FFF;
        border-radius: 10px;
        text-align: center;
        line-height:100px
    }
    .tag:before,.tag:after{
            content: "";
        display: block;
        border- 20px;
        position: absolute;
        bottom: -40px;
        left: 12px;
        border-style: solid dashed dashed;
        border-color: #CCC transparent transparent;
        font-size: 0;
        line-height: 0;
    }
    .tag:after{
        bottom: -37px;
        border-color: #FFF transparent transparent
    }
    --></style>
    <div class="tag">CSS QQ气泡框</div>
    
  • 相关阅读:
    类目(分类)
    协议(Protocol)---实例
    OC 复合 组装电脑
    iOS--九宫格奥秘(UIView)(arc4random)
    字符串
    oc 字符串
    七星彩问题
    OC--第一个程序
    关于行内元素垂直居中的一个小小trick
    关于orgChart
  • 原文地址:https://www.cnblogs.com/linkhtml/p/5488833.html
Copyright © 2011-2022 走看看