Copy the code into the garden in the blog page, sometimes there is an exception, as follows:

<! DOCTYPE HTML>
<HTML lang = "EN">
<head>
<Meta charset = "UTF-. 8">
<title> the Document </ title>
<style type = "text / CSS">
* {
padding: 0;
margin: 0;
}
.warp {
background: #ddd;
}
</ style>
</ head>
<body>
! <- div throughout the following assignment is in the garden blog, adjusted, as displayed in the page image : ->
  <div class = "Warp">
    <P> rate <br/> received road to see non-independent development and construction labor law </ P>
  </ div>
</ body>

</html>

Web page display: Even set * {padding: 0; margin: 0;} .warp above the top edge and left no

Solution: Remove all spaces can be assigned, including all spaces must delete the assignment, it means a rewrite, or even the style, html display has a problem.

<Div class = "warp"> <p> Rate <br/> received road to see non-independent development and construction labor law </ p> </ div>

 

Guess you like

Origin www.cnblogs.com/Knowledge-is-infinite/p/11263460.html