首页 > 开发 > CSS > 正文

可自定义箭头样式的CSS3气泡提示框

2024-07-11 08:33:11
字体:
来源:转载
供稿:网友

一款基于纯CSS的气泡提示框,整个提示框由箭头和矩形框组成,并且气泡提示框的箭头可以有不同的方向。

在线预览    源码下载

实现的代码。

css代码:

CSS Code复制内容到剪贴板
  1. .arrow_box {        position: relative;   
  2.     background: #88b7d5;        border: 4px solid #c2e1f5;   
  3. }    .arrow_box:after, .arrow_box:before {   
  4.     bottombottom: 100%;        left: 50%;   
  5.     border: solid transparent;        content: " ";   
  6.     height: 0;        width: 0;   
  7.     position: absolute;        pointer-events: none;   
  8. }        
  9. .arrow_box:after {        border-color: rgba(136, 183, 213, 0);[......]   
  10.   

以上就是本文的全部内容,希望对大家的学习有所帮助。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表