HTML Learning notes CSS background style case sixth (original) Reference use table

Source: Internet
Author: User

<!DOCTYPE HTML><HTMLLang= "en"><Head>    <MetaCharSet= "UTF-8">    <title>Style</title>    <Linkrel= "stylesheet"href= "Tzy.css"type= "Text/css"></Head><Body><P>Whether the test can be inherited</P><H2>La La la la</H2><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P><P>Whether the test can be inherited</P></Body></HTML>

Body{background:Blue;/*background color, cannot be inherited*/Background-image:URL ("http://mpic.tiankong.com/125/4a0/1254a004e301cef092bbb4259655e309/640.jpg");/*set up a picture*/width:900px;Height:900px;background-size:500px 500px;/*Set Picture size*/background-repeat:no-repeat;/*set picture does not allow duplicates*/background-attachment:fixed;/*the picture does not scroll when you set the scrolling page*/}P{width:150px;Height:20px;background:Red;}H2{Background-image:URL ("http://mpic.tiankong.com/125/4a0/1254a004e301cef092bbb4259655e309/640.jpg");/*set up a picture*/background-repeat:Repeat;/*Set picture Allow duplicates (default)*/background-repeat:Repeat-x;/*Set Picture x axis can be repeated*/background-repeat:repeat-y;/*Set Picture Y axis can be repeated*/background-repeat:no-repeat;/*set picture does not allow duplicates*/background-position:Right center;/*Set Picture start position can be written to 100px 100px*/}

HTML Learning notes CSS background style case sixth (original) Reference use table

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.