Description: MooTools supports the use of CSS selector syntax to get ELEMENT nodes, doing the most things with minimal code. The tool methods to implement these functions are provided in dom.js as well as the element-level extensions.
1. Method: $E
Cascading Style Sheets (CSS) are a series of formatting rules that control the appearance of Web page content. When you use CSS to format page formats, content and presentation are separated from each other. The page content (HTML code) is in its
In this case, the is left floating, to achieve the text surrounding the effect of the picture.
HTML file:
"Http://www.w3.org/TR/html4/loose.dtd" >css to achieve the effect of text surrounded by pictures DCSs Learning
If floating elements are different in height, they may be "stuck" by other floating elements when they move down.
Cases:
HTML file:
"Http://www.w3.org/TR/html4/loose.dtd" >
css left-floating example
div1
div2
div3
Place three div on the page, the background is pink, width 150px, height 100px, blue, solid line. Three Div are left floating, to achieve horizontal arrangement.
HTML file:
"Http://www.w3.org/TR/html4/loose.dtd" >
css left-floating example
Place three div on the page, the background is pink, width 150px, height 100px, blue, solid line. Let Div1 right float
HTML file:
"Http://www.w3.org/TR/html4/loose.dtd" >
Example of css right float
div1
div2
div3
TEST1.CSS file:
. box{
CSS settings background picture needs to use the Background property, where the background-repeat set the way the picture tiles, no-repeat for the picture does not repeat tiles. A description of the background-repeat in the CSS manual is as follows:
Example requirements: A box has more than one picture, the picture's margin consistent, and can automatically wrap, to achieve the picture window effect. The final effect figure is shown at the end of the article.
Realize the idea:
Basic structure:
CSS Box Model diagram:
We have some common property names in Web design: content, padding (padding), Borders (border), boundaries (margin), and CSS box models have these properties.
Example:
HTML file Contents:
An element can have both an ID selector and a class selector, but only one ID selector, and the ID selector has a precedence greater than the class selector.
Cases:
HTML file Contents:
an element can have both an ID selector and a class
You want all elements to conform to one style, and you can use wildcard selectors. Wildcard selectors can be applied to all HTML elements, but with the lowest precedence.
Grammar:
*{
Property Name: property value;
.......
}
Cases:
HTML file:
Basic syntax:
#id选择器 {
Property Name: property value;
......
}
Example:
HTML file:
css ID selector
very very important news
Content of Selector.css:
The use of/*id selector * *
#id1 {
background-color:silver;
font-size:20px;
}
This article through the pure CSS code to write a bookmark effect, the implementation of the bookmark effect is very beautiful, the text gives a complete sample code, the implementation of the code is very simple, very convenient for everyone to
This article on the CSS commonly used 6 properties to explore, we will certainly be satisfied with this article.
1.position:static
The static property is the default value of position, which means that when an element does not have a position
The positioning mode in CSS specifies where a box should be positioned on the overall layout and how it will affect the surrounding boxes. The pattern includes regular document flow, floating, and several types of position positioned elements.
Of
1.position:static
The static property is the default value of position, which means that when an element does not have a position property set for it, its default value is static.
2.position:absoluteThis is a position property value that will
First, Introduction
The Position property of CSS sets how elements are positioned, defining positioning rules for the element to be positioned. This property is useful for scripting animation effects.
1. Positioning elements (positioned element)
Three basic positioning mechanisms in CSS
A. Normal document flow
B. Positioning: Relative positioning
Absolute positioning
Fixed positioning
C. Floating
1. In the normal stream, the element position is determined by the document order and
This paper introduces the visual effects of the new CSS3 features, such as single shadow, irregular projection, chromosome effect, frosted glass effect, folding angle effect, the concrete realization is as follows:
One, one side shadow
1.
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