position fixed;设置了height 100 却不是浏览器可视窗口的宽高,求大神释疑。

设置了如下css样式的代码,但是显示的高度不是全屏,如图。

.ss_hide{

    position: fixed;

    background: rgba(0,0,0,.2);

    height: 100%;

    width: 100%;

}

https://img1.mukewang.com/5c24a6a00001a6ec11890465.jpg

智慧大石
浏览 725回答 1
1回答

青春有我

top: 0;bottom: 0;left: 0;right: 0;
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript