1. Link labels belong to the XHTML category, while @ import is unique in css2.1. In addition to loading CSS, link labels can also do many other things, such as defining RSS and rel connection attributes. @ import can only load CSS.2. the difference
Original article: efficiently rendering CSS
I admit that I don't often think about this ......What is the efficiency of CSS we write? What is the speed of browser rendering?
This should be something that browser developers should be concerned
Firefox: When div is set to margin-left and margin-right is set to auto, it is already centered. IE is not working.
When setting text-align for Firefox: body, you must set margin: auto (mainly margin-left, margin-Right) for the DIV to be centered.
View HTML
Code :
Example source code
[Www.52css.com]
my homepage
I love CSS
my homepage
my logs
my logs
my album
my favorites
Community Circle
I love CSS
my homepage
my logs
my album
my favorites
my
1. 2. 3.
Some people often encounter parameters in JavaScript and CSS files loaded on HTML pages, such:There are two possibilities for using parameters,* The script does not exist, but is dynamically generated by the server. Therefore, a version
HtmlFrom the beginning to the end of the HTML document:
make the width of the content adaptive to the width of the device, one that must be added to mobile Web
disable mobile phone number links (for iPhone)
set the icon of Your webpage in
CSS hack is usually used to ensure compatibility with multiple browsers.
# Test {Color: red;/* all browsers support */Color: red! Important;/* supported by Firefox and IE7 */_ Color: red;/* IE6 supported */* Color: red;/* IE6 and IE7 */* + Color:
Many other attributes of CSS are easy to understand, such as fonts, texts, and backgrounds. Some CSS books will also introduce these simple attributes in a great way, but ignore the explanation of some difficult attributes, which may be avoided.
A block element generally starts from a new line. It can accommodate inline elements and other block elements. A common block element is the section tag 'P ". The "form" block element is special. It can only accommodate other block elements.If no
The following example information comes from the http://www.uecss.com/index.php/fixed-floating-imitation-navigation/
Add a style to the page:
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-
Definition and usage
The font-variant attribute sets the font of small uppercase letters to display text, which means that all lowercase letters are converted to uppercase letters, but all letters using small uppercase letters are compared with
1. Requirements: for example, the layout of the three columns in the middle is the width of the adaptive browser, the left fixed width 200px, And the right fixed width 200px;
. Right,. Left{Height:300px;Width:200px;}. Right{Float:Right;Background:#0
Today, I saw a blog post on Google Reader. After I asked several colleagues in the group, I found that I had always had a misunderstanding about CSS selector. It is said that foreigners
Article I mentioned very early that CSS selector is a priority.
CSS compatibility with browsers is sometimes a headache. Maybe when you understand the skills and principles, you will feel that it is not difficult to collect IE7 from the Internet, 6. Solve the problem of compatibility with fireofx and sort it out.
The most common difference between Firefox and IE is that! The important method provides the following methods for compatibility of different versions of other browsers and browsers, such as @ import, annotation, and attribute selector, sub-object
Since the emergence of CSS, some vendors have hoped that CSS can be more flexible. The earliest concept of CSS dynamic is embodied in "dynamic expressions" (or dynamic attributes, dynamic attribute, the concept of dynamic expressions may be derived
Summary:
I can see that many of the borders of many websites have rounded corners and are very beautiful, but I am not good at drawing skills. Can I use CSS to achieve this? After some searches, I found that the main principle is probably the
1. CSS import:
First, put the CSS document in the document:
In .2. I learned a new trick on the internet today to make the widget color gradient.. Test {filter: progid: DXImageTransform. Microsoft. gradient (startcolorstr = 'white', endcolorstr = '
1. In grids.css, the width of the page layout is em width, because em will change the width as the user adjusts the font size (View-text size), so as to have a better user experience;
2,20.reset.css: The page font size is 13px, so the page width
In the early stage of large-scale projects, we must make good plans and make reasonable plans... The same is true for CSS files. Generally, when you are working on such a project, the website will have a folder dedicated to CSS ..Bytes --------------
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