CSS阴影优化气泡框样式

xml 复制代码
<body>
<div class="pop">气泡框</div>
</body>
css 复制代码
body{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%
}
.pop{
  display: flex;
  justify-content: center;
  align-items: center;
  background: #409eff;
  width: 150px;
  height: 70px;
  position: relative;
  border-radius: 5px;
  color: #fff;
  /** box-shadow: 0 0 10px #000;   换成filter*/
  filter: drop-shadow(0 0 10px #000) 
 /** filter表示滤镜  drop-shadow表示阴影滤镜 */
}
.pop::before{
  content: '';
  background: #409eff;
  position: absolute;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  left: -10px;
  top: 50%;
  margin-top: -10px;
}
相关推荐
Pilot-HJQ1 天前
固定 Element UI 表格表头的方法(超简单)
vue.js·学习·css3·html5
kilito_012 天前
数字时钟翻页效果
javascript·css·css3
码客前端3 天前
理解 Flex 布局中的 flex:1 与 min-width: 0 问题
前端·css·css3
程序员小李白3 天前
弹性盒子详细解析
前端·css·css3
Komorebi゛3 天前
【CSS】线性流动边框样式
前端·css·css3
be or not to be4 天前
CSS 背景(background)系列属性
前端·css·css3
.又是新的一天.4 天前
【前端Web开发HTML5+CSS3+移动web视频教程】01 html- 标签之文字排版、图片、链接、音视频
前端·css3·html5
lcc1875 天前
CSS3 伸缩盒模型
css3
hxjhnct5 天前
响应式布局有哪些?
前端·html·css3
梦6507 天前
【前端实战】图片元素精准定位:无论缩放,元素始终钉在指定位置
前端·html·css3