There have been many discussions on H1 recently (on the Content Page of the article). There are roughly two situations: h1 should be used for the title of the article. H1 should be used for the title of the site. I believe most people prefer the
Web page layout often requires a part-time multi-browser, so the following csshack can be used, but it is best to use less, have to use the difference IE6 and FF:
Background: orange; * background: blue;
Difference between IE6 and IE7:
Background:
Summarize the general solution to clear the float, and pay attention to it when making webpages.
Clear with empty tag
. Clr {clear: both ;}
Left
Right
Use overflow attributes
# Layout {overflow: auto; zoom: 1 ;}
Some CSSHack is collected to facilitate querying and shielding IE browsers (that is, they are not displayed in IE) when the compatibility problem is solved)
*: Lang (zh) select {font: 12px! Important;}/* FF dedicated */
Select: empty {font: 12px!
Pay attention to css coding m and css coding tutorials, which are a concern of many web page makers and developers. There is no magic. You can make sure that your style sheet is reduced to, but the CSS coding and organization skills are reasonable,
The soft-character connector used in html contains soft-connection characters in html Entity characters. This character does not show any performance on the page. But it is a very useful character.
A useful example. For example, when we want to
Make the webpage framework transparent and bottom aligned Code make the webpage framework transparent
Browsers over IE5.5 and NN6 support the allowTransparency method of Frame and Iframe objects. If the background color of an object is set to
Today I wrote a piece of CSS, and I suddenly thought of it. I 'd like to share it with you. We may have been used to the differences between padding in different browsers, but you may not have noticed this; today I wrote a piece of CSS, writing
How to Implement div spacing using the margin and overflow attributes
Using the margin and overflow attributes to implement p-spacing _ experience exchange
Div + CSS for webpage layout, appropriate use of absolute and relative, can bring unexpected effects and convenience to the layout, to get twice the result with half the effort... This article introduces the application of absolute and relative. For
Float on both sides. Tested to be compatible with IE6, IE7, and Firefox's pure DIV/CSS couplet floating advertisement code (no JS)
The source code network is floating on both sides. Tested to be compatible with IE6, IE7, and Firefox browsers.
The
The DontUseTheseTags tag set, which is not recommended in the DIV + CSS layout, is used as the DIV + CSS page. The tag code is not recommended. Please try not to use these HTML tags:
Do not use these html elements in html pages.
Presentational
In the development of Web, we have sorted out some points worth attention. We hope that we can provide some help and notes for those who are interested in this field:
1. The statements except DOCTYPE must be written in lowercase English letters.
For more css methods for css force-wrapping css force-do-not-wrapping, refer to the article control on the content page of this site. We have summarized the text wrapping and css writing without-wrapping in the past. However, if a table cell knows
We recommend a good advanced usage of form Input. 11 Examples 1. dotted box when the cancel button is pressed
Add the attribute value hideFocus or HideFocus = true in input.
2. Read-only text box content
Add the attribute value readonly in input.
3
Code that uses javascript to control the target attribute of a link is not allowed to use the target attribute in tags in HTML 4.0 Strict and XHTML 1.0 STRICT. This is a headache for web designers. it is still allowed in the Transition specification.
Code for freely stretching a three-column layout of a div Layout
Three-column layout for free Scaling
Three Column Stretch (top) #leftbox { position: absolute; left: 10px; width: 180px(150px?); } This fieldThe
We recommend that you have a deep understanding of position positioning and z-index attributes in css. Author: Cutsin
Address: http://www.moonless.net/blog/2007/09/csspositionz-index.html
Note: This article is for communication purposes only. If
Css writing method that allows users to control the font size of web pages. Currently, most websites in China use CSS to set the font size to 12px. Although pixels are relative size units, they are only relative to the screen resolution, when 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