ArticleDirectory
I. Importance of Reset CSS
Ii. Font importance
Iii. Connection
4. Do not use @ import in CSS
5. Do not use CSS expressions
6. Avoid using filter
VII. Bug hack
8. Fully Understand floating
9. Learning Resources
I. Importance of Reset CSS front-end developers are oft
Basic css knowledge (I), basic css knowledge (
I. Css rules are mainly composed of two parts. 1. selector 2. One or more declarationsA. selector is mainly used to determine the HTML elements whose styles need to be changed.B. Each declaration is composed of an attribute and a value. The declaration is surrounded by curly brackets. The attributes and values are se
CSS Origins
The decline of the Web:
In the early days of the web (1990-1993), HTML was a very limited language. Consists almost entirely of structured elements used to describe paragraphs, hyperlinks, lists, and headings. With the advent of the World Wide Web (the enhancement of user interaction experience), the need for HTML is increasing, and it is imperative that HTML add new elements to complete a specific function
Under
css| style Sheet
These tutorials were organized by me, referring to the Rain CSS 2.0 manual, the hve Star Ocean CSS Manual, and some resources on the web,
About CSS style sheets
What basics should you master before you learn CSS?
1. What is a Web page and what is a Hypertex
First of all, speakinghover
Pseudo-elements do not support hover, but we can add hover to common tag tags to support hover of pseudo-elements, such as. div2:hover::before
And then it's about absolute achieving aRealization of the implementation of the implementation of the two four
Here I suddenly find that implementation three and implementation four have some differences in animation.
CSS (12). CS
Method One:
Copy Code code as follows:
Description: The advantage is that the content can be any HTML element, including hyperlinks and pictures, etc., in the IE6 will also automatically display ellipses at the end. The disadvantage is that you must specify the width value, and the width cannot be a percentage, otherwise it will be considered as a percent of the total character length in IE.
Method Two:
Copy Code code as follows:
Note: The advanta
I divide the Forum homepage into header area, information area, content area, footer area. First of all with a large div to include these, mainly in view of the overall adjustment of the page is convenient, such as to adjust to widescreen or narrow screen, as long as the setting of this large div can be.
First put the code out, for friends to debug use.
Css:
Copy Code code as follows:
/* CSS Doc
ProblemWhen a block element that defines the width is filled with all plain English or pure numbers, it will hold large containers in IE and FF, do not wrap automatically, and when numbers or English characters are in Chinese, they will be wrapped in Chinese characters, while pure Chinese characters can be automatically wrapped. How to solve this problem? Let's meet two characters Word-wrap and Word-break.Workaroundcan be added in CSSWord-wrap:break-word;Word-break:break-all;Word-wrap to control
Learn the CSS selector this week.The most commonly used work is the element selector, the ID selector, the class selector, and the descendant selector.There are some less common but powerful selectors are easy to overlook, this study summarizes.1. Descendant selector and descendant selectorDescendant selector:element1 element2, finds all element2 that are descendants of Element1 Descendant selector:element1>element2 to find the Element2 of elem
CSS3 Border-radius PropertiesDefinition and usageThe Border-radius property is a shorthand property for setting four Border-*-radius properties.Tip: This property allows you to add rounded borders to elements!1 DOCTYPE HTML>2 HTMLLang= "en">3 Head>4 MetaCharSet= "UTF-8">5 title>Documenttitle>6 style>7 Div{8 width:200px;9 Height:200px;Ten background:Red; One Border-radius:10px 40px 70px 100px; A } - style> - Head> the Body> - Div>Div> - Body> - HTML>1, HTML+DIV+
CSS Positioning PropertiesCSS positioning properties allow you to position elements.
Properties
Description
Position
Place the element in a static, relative, absolute, or fixed position.
Top
Defines the offset between the top margin boundary of an anchored element and the upper boundary of its containing block.
Right
Defines the offset between the right margin boundary of
and search Cancel button in Safari 5 and Chrome* on OS X.** Delete the padding and search cancel buttons on the input boxes in Chrome on Safari 5 and OS x.*/Input[type= "Search"]::-webkit-search-cancel-button,Input[type= "Search"]::-webkit-search-decoration {-webkit-appearance:none;}/*** Remove inner padding and border in Firefox 4+.** Delete the internal padding on Firefox 4+ button and input.*/Button::-moz-focus-inner,Input::-moz-focus-inner {border:0;padding:0;}/*** 1. Remove default vertica
#条件声明 (explained in detail in another article) is also the most common way to solve IE compatibility#对于不同版本的IE相应的CSS规则, is also an alternative way.IE8 and/or next: After adding the 9 (\9) attributeIE7 or later: Add a property before adding *IE6: Add before attribute _. box {Background:gray;/* standard */background:pink\9;/* IE 8 and below */*background:green;/* IE 7 and below */_bac Kground:blue; /* IE 6 */}#条件声明里面, add the This method was invented by
CSS @media rules are ideal for positioning HTML or XML documents as target output methods. Currently, print media usage is very common and print provides a cleaner way to create printer-friendly pages than to implement a separate "printable version". The screen media has not been fully exploited, probably because people generally think of it as screen simply "the default rendering method". However, in terms of layout (especially absolute layout), scre
In fact, the front of the standard flow and floating flow are very understanding, that is, the positioning is not very good understanding, especially relative positioning and absolute positioning, a lot of students just start learning bad distinction. So here, Mr. Xiao Qiang and everyone to share CSS positioning learning.Through our previous study, our Web page layout method:1. Standard flow (most stable)2. Floating stream (float second)3. Position fl
Using abbreviations can help reduce the size of your CSS files and make it easier to read. The main rules for CSS abbreviations are as follows:
Color
16 The color value of the binary, if the value of each two digits is the same, you can abbreviate half, for example:
#000000可以缩写为 #000; #336699可以缩写为 #369;
Box size
There are usually four ways to write:
property:value1; Indicates that all edges are a value v
Core hints:CSS template tutorial, custom templates required CSS attribute knowledge.
This table lists only the commonly used CSS properties, and briefly describes its main features, to understand all the properties and specific usage, please refer to the relevant books
Property name
Property function and its value
Usage instructions and examples
Color and Background class
Article Introduction: CSS naming font, if the site is UTF8 encoding, remember to use the English font name, otherwise the font display is not valid, the following list of some of the English fonts named in English.
CSS naming font, if the site is UTF8 encoding, remember to use the English font name, otherwise the font display is not valid, the following list of some of the English fonts named in
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.