学无先后,达者为师

网站首页 编程语言 正文

css flex实现div固定在浏览器右下角

作者:瞎搞一通 更新时间: 2023-07-06 编程语言

css 实现div固定在浏览器右下角

.test{
  text-align: center;
  width: 20px;
  height: 25px;
  
  position: fixed;
  //当元素之间重叠的时候,z-index 较大的元素会覆盖较小的元素在上层进行显示。
  z-index: 10;
  background-color: #ffffff;
  bottom: 6rem;
  right: 3rem;
  border-radius: 5px;
}

原文链接:https://blog.csdn.net/god_sword_/article/details/131508299

  • 上一篇:没有了
  • 下一篇:没有了
栏目分类
最近更新