给元素100vw与100vh,发现界面出现横向和竖向滚动条
... <style> .container{ width: 100vw; height: 100vh; } </style> <body> <div class="container"></div> </body> ...
分析原因:body自带默认margin属性
解决办法:
*{ padding: 0; margin: 0; }
标签:...,100vw,vh,滚动条,100vh,css From: https://www.cnblogs.com/nicoz/p/17150398.html