猿问

css中为什么去除top之后,上面会有一个空行?

css并没有特殊设置啊?

body{

    background: #f5f5f6;

}

#canvas{

    

    position:fixed;

    width:100%;

    height:100%;

    /* top:0; */

    z-index:-1;

}

largeQ
浏览 399回答 1
1回答

桃花长相依

浏览器自带的,跟top没有关系解决方案是:body,html{margin:0;padding:0;}
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答