Many martyrs have summarized the dynamic creation of large sections of inline CSS styles on pages and possible problems, such asArticle: Weird ie-2. I will not go into details here. I just want to forget it.
In fact, there are still questions:
Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
· All units must be explicitly specified, such as body {margin: 0px ;}
· When specifying the width and height, you need to subtract the padding from the actual width and height. For example,
. P1 {word-break: Break-all; width: 150px;}/* only applies to English letters. Use letters as the line feed basis */
. P2 {word-wrap: Break-word; width: 150px;}/* -- only applies to English. Use words as the line feed basis */
. P3 {white-space:
Very short .. But it is very important.
Browser priority: FF
Take the "# Demo" style as an example;
# Demo
{
Width
:
100px
;
Height
:
100px
;
Border
:
1px blue solid \ 0
}/* Executed by Firefox, IE6, and IE7 .*/
*
8. Fixed footer
Adding a fixed footer to a webpage is actually very simple and practical. The footer of some websites is beautifully designed to present a perfect ending to the website.
# Footer {Position: fixed;Left: 0px;Bottom: 0px;Height:
10 CSS rules that you do not know
Body:
Published December 6th, 2004 in cssstaff tags: no tags.
Original article address: Ten CSS tricks you may not know
Translated by kelet: I think many of these 10 articles are very useful. some
The emergence of IE7, IE8, and firefox3 allows CSS to do more. Let's take a look at the adjacent CSS selector.
Adjacent delimiters are the delimiters that match the element that follows the element and has the same parent element as the target
I reviewed the basic CSS knowledge the day before yesterday and learned some layout knowledge yesterday. Today is the third day. I started to create a CSS + Div layout page by myself. The process of making the first page of the camel was very
While learning about divcss web page layout, W3C validation is sometimes difficult to operate, but you can use it to view errors caused by layout design. The verification program throws a large number of errors and warnings, indicating that your
One of the most difficult concepts in CSS is how to float elements. By understanding this concept, you can understand how elements are processed in your page stream and construct a reasonable page layout.
The max design team made a good tutorial
☆Background-color)This attribute sets the background color for the HTML element, which is equivalent to the bgcolor attribute in HTML.Body {background-color: #99ff00 ;}The above Code indicates that the background color of the HTML element "body" is
Everyone is familiar with the indentation of the first line in CSS. It is nothing more than adding the following content on this page:
Or write it in the externally called CSS:
P {
Font-size: 14px;
Text-indent: 2em;
}
If none of the above
Document directory
Example of getting started with CSS -- try editing
2. Getting started with CSS
You can use this link to get started with HTML.
Example of getting started with CSS -- try editing
Define text color
Define the background
Before starting today's content, let's take a brief look at keyframes, which is in the W3C draft.Animation Module. In keyframes, each set of animations can be assigned a name that allows you to flexibly define the animation to be executed by
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