White Space between the Title and Web Browsers

后端 未结 3 1448
长发绾君心
长发绾君心 2020-12-22 12:42

When I use these address \"file:///C:/Users/h/Desktop/test/a.html#cs\", \"file:///C:/Users/h/Desktop/test/a.html#chgd\" or \"file:///C:/Users/h/Desktop/test/a.html#wmnh\" I

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-22 13:25

    Just add some CSS, for example:

    h4 {
        margin-top: 20px;
    }
    

    You can add this to the h4 tag or the entire body to move the whole page down. To do this, either add this content in a new CSS file and link it in the head like this:

    
    

    Or you could add it directly in the page by wrapping it in a style tag:

    
    

    An an (extreme) example to demonstrate:

    h4 {
      margin-top: 100px;
    }

    This is the title

    This is the body

提交回复
热议问题