HTML5+CSS3 Related knowledge

Source: Internet
Author: User

One: HTML5

META tags in 1.html

Define keywords for search engines: <meta name= "keywords" content= "HTML, CSS, XML, XHTML, JavaScript"/> Define the description of the page: <meta name= " Description "content=" Free web technology tutorials. "/> Definition page Latest version: <meta name=" Revised "content=" David, 2008/8/8/"/> Refresh page every 5 seconds: <meta http-equiv=" Refresh " content= "5"/>

The Content property provides the value in a name/value pair. The value can be any valid string.

The content property is always used with the Name property or the Http-equiv property.

Two. CSS3 main application

Application of 1.margin

<! DOCTYPE Html>}.box1{background-color:blue;margin:20px;height:50px;}. box2{height:50px;background-color:red;margin:20px;} </style>

Figure one: Figure II: Add Overflow:hidden to the parent container;

The small icon that starts with the general IMG tag is aligned with the text, img{margin:0 3PX-3PX 0;} Can be said to be a formula version of the thing, to achieve the effect and compatibility of the best alignment effect. (Zhang Xin Xu, the Great God said)

2. For the text alignment of the Radio box and check box

In the complex (single) marquee font is 14px, the page is aligned, but less than 14px, there will be deviations

The font is biased at 12px:

<div class= "Box1" ><input class= "checkbox" type= "checkbox" id= "CheckBox1" name= "" value= ""/><label for= ' CheckBox1 ' > check box 1</label><input class= "checkbox" type= "checkbox" id= "CheckBox2" name= "check box" value= "/> <label for= ' checkbox2 ' > check box 2</label></div><div class= "Box1" ><input class= "checkbox" type = "Radio" id= "Radio1" name= "Radio Box"/><label for= ' radio1 ' > Radio box 1</label><input class= "checkbox" Type= " Radio "id=" Radio2 "name=" Radio Box "/><label for= ' Radio2 ' > Radio box 1</label></div>
Complex (single) marquee style
. checkbox{    font-size:12px;   vertical-align: -2px;}

  

See a lot of methods on the Internet, but not very good compatibility, directly write on the use of the best compatibility of a method to the complex (single) box plus vertical-align: -2px; The style is compatible with Google, Firefox, ie11,10,9,8 ...

To be continued .......

HTML5+CSS3 Related knowledge

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.