There are four methods to call CSS: Intra-row style, embedded style, link type, and @ Import. at the same level, we can understand their priorities according to the principle of proximity, and the style defined beyond the previous will be
General use of all browsers (IE6 IE7 FF mainly used in the market)Height: 100px;Dedicated for IE6_ Height: 100px;Dedicated for IE6* Height: 100px;Dedicated for IE7* + Height: 100px;Share IE7 and FFHeight: 100px! Important;I. CSS compatibilityThe
DOCTYPE Selection
The selection of doctype is the document type, which determines whether the page elements and the defined CSS will take effect, because in different doctype, the HTML elements that can be used on the page are different, let's take
To ensure that the CSS effect is compatible with IE and Firefox,RecommendationAs follows:
1: Use Margin as few as possible and use padding to set the distance. margin is too unstable,
(Try this one when you encounter an inexplicable problem. Set
I. Framework The page framework is basically "Header", "subject", and "tail ". However, for some pages such as Tudou.com, a "menu" should also be added under the "Header" due to layout requirements ".
Ii. layout (# ID indicates the page element
HTML and CSS are the most commonly used languages on two web pages. Although it may not be the most advanced form of web development, every website established in the last decade uses these two languages. Needless to say, they have many things to
Therefore, the image Path Problem in Css is summarized as follows:
1. Do not quote the path of the background imageChange background: url ("xxx.gif") to background: url(xxx.gif)Some browsers may encounter errors when quotation marks are added.
2.
Multiple CSS files and JS files are used during development. How to organize them becomes a problem.
I personally think that multiple files are used during development, so that you can easily view them and merge them into one at the time of release.
To achieve some special effect, we need to use Javascript to dynamically change the Css attribute of a tag. For example, when the mouse goes through an image, we add a border to the image. The code may be as follows:JavaScript code
What are
How to Use css and javascript when using a master page)
Because the header and bottom of the main channel page and list page of the website are the same, if you place each page in a separate page, the maintenance volume is too large when the
Document directory
HTML
CSS
JQuery
I often see this article in CSS-tricks and moved it by the way. The following translations are described in CSS-tricks.
Some of my band's friends have just experienced a small member Lineup change. They
From Baidu document: http://wenku.baidu.com/view/177b11d3240c844769eaee1a.html
Although I personally support the original tutorials in the blog Park, sometimes I would like to share with you some good articles. The following article describes the
The following code sets the height and width of a to 0 PX, and then creates a thick border. The borders in the other three directions are set to the same color as the background color, the background color of the border in the direction of the
When I started to learn about web page design, it was a table layout. At first, I used ps to prepare the website and slice it. Although it is still in use, I should take a closer look at it, most websites have similar characteristics. One is not
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