1. The highest weight is directly added after the element! Important.
2. Source weight:
Reader's important statement :! Important
Important statement of the Creator :! Important
Normal statement of the Creator
Reader's normal statement
All website friends know that, because the kernels of different browsers are different, even if different versions of IE are displayed differently, the display effects of the same page on different browsers are different. Therefore, it is very
In the current situation where Internet Explorer 6 IE7 has efox, the browser compatibility problem has become a problem that needs to be considered by web designers.
Different browsers use CSS hack:
Difference between IE6 and FF:Background:
Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
· All units must be explicitly specified, such as body {margin: 0px ;}
· When specifying the width and height, you need to subtract the padding from the actual width and height. For example,
Flex2 development projects often need to verify user input. flex2 itself provides us with rich components.The following example provides the following features:1) centralized data verification2) locate the cursor to the first verification failure
1. Compare the priority of class and ID.
No title 1
class before after id class before behind the class ID before behind the class ID before after id
Conclusion: The above Code shows that the priority of IDs in CSS styles is higher
1. Do not use a small image for background tile. This is why many people do not need 1px. Images with a width of 1 px and a height of 200 PX are tiled out, which requires 200*40,000 = times to occupy resources.
2. No border. The recommended method
Objective of CSS SpritesBy integrating images, you can reduce the number of requests to the server to speed up page loading.
Implementation Method:
First, integrate the small image into a large image.
Then, locate the background based on the
10 CSS rules that you do not know
Body:
Published December 6th, 2004 in cssstaff tags: no tags.
Original article address: Ten CSS tricks you may not know
Translated by kelet: I think many of these 10 articles are very useful. some
One of the advantages of CSS is that it can reduce the page size and shorten the download time, not only the loading of the homepage, but also after the style sheet is cached, the loading of subsequent pages is also accelerated. This is true, but
The next day. I learned the basic usage of CSS yesterday, including CSS references and some common CSS attributes. Understanding the basic usage of CSS is only the first step to complete CSS + Div layout. When it comes to typographical layout,
For a simple and hidden menu, there is only one menu label for the indicator at first. When you move the mouse over the menu label, the complete menu is displayed. Javascript has many versions, but few have CSS versions. So far, I think this menu is
CSS Basics
Reference Method:
Basic statement structure:Selector {attribute 1: attribute value 1; Attribute 2: attribute value 2}
Selector:It can be any identifier in HTML, such as TR, TD, P, Div, IMG, or even body.
Optional. The content in
Javascript dynamic calling of CSS style sheets (1)
Previously, I often met words such as classname and csstext, but I don't know how to use them. There are four methods to call a style sheet on a webpage.The first is the external chain, that is, the
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