加入收藏 | 设为首页 | 会员中心 | 我要投稿 焦作站长网 (https://www.0391zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 系统 > 正文

DIV+CSS实现带三角箭头的提示框

发布时间:2020-03-14 20:46:31 所属栏目:系统 来源:站长网
导读:本文给大家带来一段代码基于div+css实现三角形提示框,代码简单易懂,需要的朋友可以参考下

DIV+CSS实现带三角箭头的提示框

实现代码

CSS Code复制内容到剪贴板

<!DOCTYPE html>   

<html>   

  <head>   

    <meta charset="UTF-8">   

    <link rel="shortcut icon" href="resources/img/logo-color.png" type="image/x-icon">   

    <title>测试</title>   

    <style>   

    .out-div {   

        color#FFFFFF;   

        font-size16px;   

        line-height40px;   

        displayinline-block;   

        height40px;   

        width200px;   

        text-aligncenter;   

        border-radius: 5px;   

        margin-left32px;   

        vertical-aligntop;   

        background-colormaroon;   

    }   

    .arrow {   

        width0px;   

        height0px;   

        border-top10px solid transparent;   

        border-right10px solid;   

        border-bottom10px solid transparent;   

        positionabsolute;   

        margin-left: -10px;   

        margin-top10px;   

        border-right-colormaroon;   

    }   

    </style>   

  </head>   

  <body>   

    <div class="out-div">   

        <div class="arrow" ></div>   

        <span>这是一个提示框</span>   

    </div>   

  </body>   

</html>  

以上所述是小编给大家介绍的DIV+CSS实现带三角箭头的提示框 ,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!

(编辑:焦作站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读