CSS base Display:block inline labels to block-level labels

Source: Internet
Author: User

Li Wu:
Heng Learn to think together, honouring teachers save Thanksgiving. Leaf See root three return to one, rivers the same oneness.
Meekness Conscience Lord, willing to do without regrets to the most bitter. Reading exercises to keep the body and mind, sincere advice and the line and cherish.

Ide:visual Studio 2017
Browser:chrome
Os:win7

Code
<!DOCTYPE HTML><HTML><Head>    <MetaCharSet= "Utf-8" />    <Metaname= "Author"content= "Https://www.cnblogs.com/jizuiku"/>    <title></title>    <style>span{width:100px;Height:100px;            /*Inline labels to block-level labels*/Display:Block;        }span:nth-child (1){Background-color:LightGreen;        }Span:nth-child (2){Background-color:Aquamarine;        }Span:nth-child (3){Background-color:DodgerBlue;        }    </style></Head><Body>    <span>Blog Park</span>    <span>to the most bitter</span>    <span>Web Design</span></Body></HTML>

Effect

Extended

2018-02-11

The following is from the lecture notes accompanying the video tutorials in the Itcast and Itheima video libraries, which are stated here to show gratitude.

<!DOCTYPE HTML><HTML><Head>    <MetaCharSet= "Utf-8" />    <Metaname= "Author"content= "Https://www.cnblogs.com/jizuiku"/>    <title></title>    </Head><Body>    <!--block-level elements (block-level) <div> 

- <!--inline Elements (inline-level) <a>, <strong>, <b>, <em>, <i>, <del>, <s>, & Features of Lt;ins>, <u>, <span> and other inline elements: (1) and adjacent inline elements on one line. (2) High and wide invalid, but the horizontal direction of the padding and margin can be set, the vertical direction of the invalid. (3) The default width is the width of its own content. (4) Inline elements can only hold text or other inline elements. (A special) - <!--Inline block Elements (inline-block) , <input/>, <td> inline block elements feature: (1) and adjacent inline elements (inline Block) on one line, but there is a gap between them. (2) The default width is the width of its own content. (3) Height, line height, margin and inner margin can be controlled. -</Body></HTML>

CSS3 excellent, worth learning.
Learning resources: www.w3cschool.cn + itcast and Itheima video library + Pure Heart.
If you have public resources, can share to me, with your resources to learn also can.
Blog post is to watch the video, into thinking written. It's good that the teacher speaks well. Blog bad, is to give the most bitter not serious.

CSS base Display:block inline labels to block-level labels

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.