<HTML><Head><title>CSS Control title</title><style><!--H1{font-family:Arial,sans-serif;font-size:28px;Color:#336699;Padding-bottom:4px; /*Bottom Filler*/Border-bottom:1px solid #999999; /*line width style color*/}H1{font-family:Arial,sans-serif;font-size:28px;Color:#ffffff;padding:4px; /*Around Filler*/Background-color:#669966;}H1{font-family:Arial,sans-serif;font-size:28px;Color:#666;padding:4px; /*Around Filler*/Background-color:#ddd;Border-bottom:3px Solid #aaa; /*Bottom Border*/}H1{font-family:Arial,sans-serif;font-size:28px;Color:#369;Background-color:#000000;Background-image:URL (01.jpg) repeat-x Bottom; /*Bottom Background Horizontal repeat background picture set at bottom of text*/Padding-bottom:10px; /*add additional bottom filler*/}H1{font-family:Arial,sans-serif;font-size:28px;Color:#369;Padding-left:32px; /*Move left*/background:URL (icon.gif) no-repeat 0 50%; /*set the icon to the left of the text*/}/*img can be used to achieve a number of changes in CSS, such as a large number of small icons throughout the site title*/Body{Background-color:#000000;}H1{font-family:Arial,sans-serif;font-size:28px;Color:#369;}H1 img{background:#f22;vertical-align:Middle;} -</style></Head><Body><H1><imgsrc= "Bg.gif"Border= "0">Super Title CSS</H1> </Body></HTML>
There are two reasons for this encoding: One reason is that there are various icons, depending on the subject of the title. Another reason: The site may change the color scheme of the entire site based on the current time, and to have these icons transform colors along with other elements on the page, you do not need to create new icons each time. Create some transparent GIF images. As the example above, through the transparent part of the icon, using the Background property in CSS to set its stolen color, you can achieve style changes.
The Nineth Chapter text Example Two