Div + CSS two box models
It is logical to use CSS to layout the page layout Div!Focus on understanding the differences between the box model, standard stream and non-standard stream, as well as the positioning principle! It's very easy to break
1. ie cannot tell the differences between the inheritance relationship and the parent-child relationship. All are inheritance relationships.
2. When adding a selector to your tag, do not forget to add comments to the selector in CSS. When you
When the Chinese text is too long (there are no spaces or line breaks in the middle), both IE and Firefox will automatically wrap at the boundary. However, in some cases, we do not want this. For example, you can use the "white-space: nowrap"
Without too many texts, you can directly view the results.
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> CSS: The ultimate method of transparent background color and opaque content! Compatible with all browsers
Today, a guy asked a question outside the group:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
OnlookersMasses:Boss. If you are free, I have a question.Me:Can't it be said in the group? Why
You can write the style as follows:. cssname {width: pixel PX; * width: pixel PX! Important; * width: 211px;} among them, the first is under Firefox, the second is IE7, and the third is IE6 because Firefox does not recognize, that is, the other two
Attribute
Description
Remarks
Height
Retrieve or set the object height
Actual object Height = margin + border + padding + height
Max-height
Retrieves or sets the maximum height of an object.
1: Possible CSS-dispaly values:
Value
Description
None
This element is not displayed.
Block
This element is displayed as a block-level element with a line break before and after it.
Once the resource is downloaded to the client, the browser still needs to load, interpret, and render HTML/CSS/JavaScriptCode. You can use the features of the current browser to organize your code to improve the performance of your page on the
/* The red color is my annotation. the CSS comes from dnn 3.2.2. You can see this CSS in the CSS editing of Site Management *//* ========================================CSS styles for dotnetnuke======================================*/
/* Page
Good CSS naming can make yourCodeNot only are people comfortable reading, but I have heard that Seo is also good (I have never verified it). Below is a popular style name. record it.--------Header: HeaderLogon entry: loginbarLogo: logoSidebar:
What is CSS reset? Why should we use CSS reset? The reason is very simple, because different browsers may have different default values for the selector, such as the indent length and padding size. if not processed, the pages on different browsers
CSS style specification document Dreamweaver tutorial
Style name
Description
Example
Effect
. F_12
Set the font size to 12px
F_12"> 12 PX font
Font 12px
. F_14
Set the font size to
For a non-element inline style, you need to define the style selector. In general, it is the elements that this style applies to. Style selectors include: Tag selector, class selector, Id selector, Association selector, and combination selector,
HTML:
Reference content is as follows:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Div ID = "Navcontainer" > Ul ID = "Navlist" > Li ID = "Active" > A Href = "#"
Requirements:
A page with the menu bar on the left and an IFRAME on the right. Click the menu on the left to load the corresponding page. At the same time, add the CSS selection effect to the selected menu.
Code
Code highlighting
From:Http://hi.baidu.com/liuyang1984/blog/item/28bba545456dee3a869473c7.html
Website layout
UseCSSThere are many different technologies that need to be understood for page layout. Designers also need to have a great deal of creative
CSS IE8 compatibility + CSS hack compatible with IE6, IE7, IE8, and Firefox
IE8Since the launch of the official version, some pages that do not follow the standard to write code may exist.CompatibleProblems:CompatibleMethod:
I.
1 define a style that starts with "." And starts?
A global variable starting with ".", such as. Input, is a CSS class. Class = "input" can be referenced so far wherever you want to use this style ";
A local variable starting with "#", for example,
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