1.ID rule2.Class rule3. Label rules4. General rulesThe general understanding of efficiency began with Steve Souders's 2009 Advanced Guide to High Performance website construction, although the book is in more detail, you can also view the full list
Usually a very small number, after a layer of amplification distortion, the entire layout is shape. CSS is a very simple language, easy to learn and easy to use, but also the most easily out of the garbage code. This was not the result of a thorough
css navigation Home about Us Company Profile Chairman & President Development Company honors products & Services Products 1 matching accessories Product 2 Products 2-1 products 2-2 service Service 111 Service 112
This is a navigation Web page production flash Tutorials photoshop Tutorials Cloud Communities
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Body {Font-size:0.8em;Color:navy;}The above means setting the Font-size font size and color font colors for the body selector.So basically, when it works with HTML pages, the text color between the body tag (the entire window content) is navy the
Example:
*[LANG=FR] {font-size:14px; width:120px}
*.div {text-decoration:none;}
2. Type Selector
Grammar:
E {Srules}
Description
Type Selector. Takes a document language object (Element) type as a selector.
Example:
TD {Font-size:14px; width:1
First of all, the advantages of this architecture:1. It is convenient to allocate heavy CSS writing work, without affecting each other.2. Clear structure, facilitate maintenance and modification.3. Each page will only load the CSS you need.
Summed
Simply put : These two problems are actually the same problem, but find a long time on the internet can not find a way, the outside of the JS and CSS files can not have any HTML markup annotation, once there, the browser is crazy! Just remove it,!!!.
Use JavaScript expressions in CSS expression. CSS properties are set based on the results of the JavaScript expression's calculations.
CSS expression does not work in other browsers, so it is more useful to set the IE settings individually in
The worse thing is, even if you are only for IE design, do not consider other browsers, because the IE model can be said to be an elusive monster, so you simply for IE design will encounter many problems, found that a lot of effect is always around
But also not very reliable, such as space spacing is very large, then we have to add more placeholders, and the volume of the page will become very large.
Also, note that Safari's width is the space width of the set character (the default font for
Cascading Style sheets:the Definitive Guide, 2nd Edition is a thorough review to all aspects of CSS2.1 and a comprehe Nsive Guide to CSS implementation. The book includes new content on positioning, lists and generated content, table layout, user
7, Gray, Invert,xray filter
Syntax: {Filter:gray}, {Filter:invert},{filter:xray}
The gray filter turns a picture into a grayscale image; The invert filter flips all of the object's visual properties, including color, saturation, and brightness
CSS Filter Basics
-->
--> With the development of web design technology, people are not satisfied with some of the original HTML tags, but want to be able to add some multimedia properties for the page, such as filters and gradient
CSS is the abbreviation for cascading style Sheets (cascading style sheets). is a simple mechanism for adding styles to Web documents, belonging to the layout language of the presentation layer.
1. Basic Grammatical specifications
Parse a typical
1, remove input remember the password automatically fill out the yellow background of the form
Input:-webkit-autofill {-webkit-box-shadow:000px1000px#fffinset; }
Inherit is a good thing not only to save code, especially to deal with background, but also to maintain. However, if you want to inherit background's picture, you cannot abbreviate it, and it will look naïve: Background: #fff inherit left top;
There are several methods to clear float and float.
It was not until I wrote this article that I carefully studied the principle of each floating clearing method (⊙) B.
For those who just came into contact with CSS, just like me at the time, when I
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