📜  如何使固定位置响应 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:39.607000             🧑  作者: Mango

代码示例1
.responsive-div {
    position: fixed;
    width: 70vw; // vw being viewport-width, so 70% of the width of the viewport
    height: 50vh; // vh being viewport-height, so 50% of the height of the viewport
    /*works well for SVG's specifically*/
}