the CSS web page layout ID and class naming may be a headache for everyone. To satisfy your thirst for knowledge, I would like to introduce the CSS web page layout method. 1. Use class_name to write the class name. I used to like writing with
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:
Updating ......
1. Some CSS styles are feasible in some webpages and cannot be implemented in some webpages.HtmlCode tag remove it.
2. There is a blue border problem when the image is hyperlinkFor example Solution: add the border = "0"
CSS (Cascading Style Sheets) Background attributesBackground-color)This attribute sets the background color for HTML, which is equivalent to the bgcolor attribute in HTML.Example:......
....
Background-Image)This attribute sets the background image
After you discard the support for IE/Mac, the new floating clearing method is as follows:
/* New Clearfix */. clearfix: After {visibility: hidden; display: block; font-size: 0; content: ""; clear: Both; Height: 0;} * HTML. clearfix {ZOOM: 1;}/* IE6
. Clearfix: After {Content :".";Display: block;Height: 0;Line-Height: 0;Clear: both;Visibility: hidden;}. Clearfix {display: inline-block ;}/* Hide from IE Mac */. Clearfix {display: block ;}/* End hide from IE Mac *//* End of Clearfix */
Example:
The focus of HTML is to describe the structure. Its feature is to use to define tags, which is very similar to XML. Therefore, HTML annotations use are also in line with this feature.
CSS is used to define styles and features the use of {And}.
Today, I made a special page and applied it to the particularity and Inheritance of CSS. In fact, stacked styles are implemented through inheritance and particularity.
The logic structure of the Code is as
After the float attribute is set in Div + CSS, how can I make the height of the outer layer automatically adjust with the height of the inner layer?
Overflow: the CSS style "hidden" is a common CSS style. However, most people only have a limited
CSS hack is a remedy that can be used only when the standard CSS is not compatible with the display effect of each browser. Before the browser vendors reach an agreement on CSS resolution, we can only use this method to complete such a task.
During
Document directory
CSS code
HTML code
CSS code
HTML code
cssbbs image + text list CSS website layout (second edition) This book describes a typical example of applying CSS to website layout design and Reconstruction Based on Web
I. Use CSS abbreviations
Using abbreviations can help reduce the size of your CSS file and make it easier to read. For the main rules of CSS abbreviations, see common CSS abbreviations syntax summary, which is not described here.
Ii. Define the
DIV is more difficult to control than traditional tables.
Here is a common three-column layout.
Header
Left
Content
Right
Footer
The CSS part is not very concise. You are welcome to comment and correct it, and
After a preliminary understanding of front-end development, we found the following points: front-end development requires the scripting language, mainly JavaScript, HTML, and CSS. Many people are familiar with these things. however, it is not our
1. Why use semantic tags?
1.1 semantic tags can help people understand the meaning and role of tags;. It is conducive to search engine crawling and site promotion; 3. It is accessible to mobile devices.
2.css Optimization Methods
2.1 use
Http://meyerweb.com/eric/tools/css/reset/
The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on. the general reasoning behind this was discussed in a
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