Another typical css instance

Source: Internet
Author: User

Copy codeThe Code is as follows: <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Strict // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<Html lang = "zh-CN" xml: lang = "zh-CN" xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Meta name = "Author" Content = "PR, qq: 50198763"/>
<Title> PR </title>
<Style type = "text/css" media = "screen">
<! --
@ Charset "gb2312 ";
/* PR css global settings */
Body, a, strong, input, button, h1, h2, h3, h4, h5, h6, h7 {font: 12px "Arial", "", "Tahoma ", "QQ 50198763", sans-serif;}/* 12px large, font priority: Arial, then:, Tahoma, family: sans-serif */
Html, body {height: 100%;}/* set the browser height to 100% */
Body, form, menu, dir, fieldset, blockquote, p, pre, ul, ol, dl, dd, h1, h2, h3, h4, h5, h6 {padding: 0; margin: 0;}/* Set body, form, menu, dir, fieldset, blockquote, p, pre, ul, ol, dl, dd, h1, h2, h3, h4, h5 and h6 internal and external patches are 0 */
Div, p {display: block;}/* All div, p is the block element */
Ul, ol, dl {list-style: none;}/* none for all project symbols */
Img {border: 0;}/* none of the image Borders */
A {text-decoration: none;}/* all links are not decorated [top, underline, dotted line...] */
A: hover {text-decoration: underline;}/* underline when all links are placed with the mouse */
Button {cursor: pointer;}/* hand icon when all buttons are placed with the mouse */
/* Complete global settings */

/* Layout */
# Box {width: 548px; padding-bottom: 8px ;}
# Box h3 {height: 17px; padding-top: 10px ;}
# Box. bg {padding: 5px 10px 0 ;}
/* Modify */
# Box {background: url ("images/left-btm.gif") no-repeat center bottom ;}
# Box h3 {font-weight: bolder; font-size: 12px; text-indent: 2.5em; background: url ("images/left-toptle.gif") no-repeat ;}
# Box. bg {background: url ("images/left-mid.gif") repeat-y ;}
-->
</Style>
</Head>

<Body>
<Div id = "box">
<H3> the puppy has no path <Div class = "bg">
<P> test content </p>
<P> test content </p>
<P> test content </p>
</Div>
</Div>
</Body>
</Html>

Download this file

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.