DIV+CSS完成带3角箭头的提醒框
日期:2021-01-20 类型:科技新闻 我要分享
关键词:自助建站,专业建站,建站网站,建站平台,网站在线制作app
完成实际效果
完成编码
CSS Code拷贝內容到剪贴板
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF⑻">
- <link rel="shortcut icon" href="resources/img/logo-color.png" type="image/x-icon">
- <title>检测</title>
- <style>
- .out-div {
- color: #FFFFFF;
- font-size: 16px;
- line-height: 40px;
- display: inline-block;
- height: 40px;
- width: 200px;
- text-align: center;
- border-radius: 5px;
- margin-left: 32px;
- vertical-align: top;
- background-color: maroon;
- }
- .arrow {
- width: 0px;
- height: 0px;
- border-top: 10px solid transparent;
- border-right: 10px solid;
- border-bottom: 10px solid transparent;
- position: absolute;
- margin-left: -10px;
- margin-top: 10px;
- border-right-color: maroon;
- }
- </style>
- </head>
- <body>
- <div class="out-div">
- <div class="arrow" ></div>
- <span>这是1个提醒框</span>
- </div>
- </body>
- </html>
以上所述是网编给大伙儿详细介绍的DIV+CSS完成带3角箭头的提醒框 ,期待对大伙儿有一定的协助,假如大伙儿有任何疑惑请给我留言,网编会立即回应大伙儿的。在此也十分谢谢大伙儿对脚本制作之家网站的适用!