Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
611 views
in Technique[技术] by (71.8m points)

ng-zorro开发angular 9,如何去除浏览器默认内边距?

我在stackoverflow上查的,都是在style.css或者index.html里加

html, body {
    margin: 0;
    padding: 0;
    border: 0;
}

但是,ng serve打开来,还是有内边距,不管是google chrome还是safari,都是如此。
我的代码也就是简单的一个top bar menu:

<nz-layout>
    <nz-header>
        <div class="logo">amelieykw</div>
        <ul nz-menu>
         ...
        </ul>
    </nz-header>
</nz-layout>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...