zhenzi0322

fixed 居定居中

<div style="position:fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);width:500px;height:500px;border:1px solid red;z-index:99;">
        居中显示的内容
    </div>

遮挡层

<div style="position: absolute;margin: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2200px;
    position: absolute;
    background-color: #000;
    filter: alpha(opacity=70);
    z-index: 98;
    overflow: hidden;
    opacity: 0.7;"></div>

分类:

技术点:

相关文章:

  • 2022-01-30
  • 2022-12-23
  • 2021-11-19
  • 2021-10-02
  • 2021-12-03
  • 2021-09-22
  • 2022-12-23
  • 2021-10-27
猜你喜欢
  • 2021-09-28
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
相关资源
相似解决方案