Home > front end >  How HTML web page background
How HTML web page background

Time:12-08

How to add background to the entire web page, how do you use the code?
Just learning HTML, isn't this?

CodePudding user response:

CodePudding user response:

Background: image (./*) no - repeat;

CodePudding user response:

In this way? Will not affect the page content in ah, should not put web content in a container, and let it float on it, mainly the I won't

CodePudding user response:

Put the following code & lt; head> With & lt;/head> Between
 
<style type="text/css">
Body {
Background: url (" XXXXXXX. JPG ");
}
</style>

CodePudding user response:

Thank you thank you

CodePudding user response:

In & lt; body> Add can & lt; Body background="img/background 3. JPG" & gt;

CodePudding user response:

Add background behind is the path of the background image

CodePudding user response:

Body {
Background: url (" XXXXXXX. JPG ");
}
  • Related