简体   繁体   English

我对 html header 标签和一些 css 有问题,我猜

[英]I am having problem with html header tag and some css,I guess

I'm a very beginner at html and css.我是 html 和 css 的初学者。 I have started learning html and a little bit of css very recently.我最近开始学习 html 和一点点 css。 I try html on androidz as I have no computer yet.我在 androidz 上尝试 html 因为我还没有电脑。 In order to do that, I use an apk called trebedit.为此,我使用了一个名为 trebedit 的 apk。 In my short journey, I've found a huge amount of problem.在我短暂的旅程中,我发现了大量的问题。

I use header (and footer tag also) tag in html.我在 html 中使用 header(以及页脚标签)标签。 And with css, I tried to give a colored background.而对于 css,我尝试给出彩色背景。 But its not fit the screen.但它不适合屏幕。 (Take a look at the picture, it has been marked) Maybe that's a silly question, but for me, its hard to solve. (看图,已经标注了)也许这是一个愚蠢的问题,但对我来说,它很难解决。 Can anyone, please, tell me how I can solve this problem?谁能告诉我如何解决这个问题?

这张图片描述了我的问题

You must remove the margin of the page elements.您必须删除页面元素的边距。 Welcome to the world of front end programming欢迎来到前端编程的世界

 * { margin: 0; } header { width: 100%; height: 40vh; background: rgb(185, 148, 148) center/cover no-repeat; }
 <header> </header>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM