1. Basically, there are two ways to declare a whole, the first is to target a label, and then set several styles at a time. The second way is to set the same style for several tags at once. The following example is: "For a label, and then set
The problem of adaptive height, using div + CSS for three columns or two column layout, do not know the specific height, can only be based on the content of the increase and decrease adaptive height, to make two columns (or three columns) of the
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
(1) Parent-child selector can have multi-level, but the actual application does not recommend too much, not more than three layers.
(2) The parent-child selector has a strict hierarchical relationship.
(3) A parent-child selector can be a
Margin is a common attribute in CSS, margin have a variety of ellipsis, just contact the time is not easy to understand, so this article specifically recorded.
The description of the margin property in the CSS manual is:
Retrieves or sets an outer
Text hiding is widely used, but the commonly used methods have no affinity. Disadvantages of common text hiding methods:
1, Display:none
This method search engine may think that the hidden text is garbage information and is ignored;
The screen
CSS is the abbreviation of cascading style sheets, Chinese translation "Cascading style form", I call it "cascading style sheet", I feel this kind of casually, no other meaning. It's actually a set of styles. You may be unfamiliar with the term CSS,
Objective
If you want to try the page layout without a table, instead, you can use CSS to format your Web page, which is often used to compose your Web page structure with Div, or you want to learn the standard design of Web pages, or your boss
Jorwangの small Horn: "Recently busier Ah, temporarily do not update, we play a little bit Oh!" O (∩_∩) o~ "
Just see two control page picture width of the method, feel very good very convenient, hereby share to everyone.
The first approach is to
One of the most powerful features of Flex is the tremendous design flexibility it contains. Most of this flexibility can be attributed to Adobe implementing CSS with Flex. In my case, I recently served as an advanced UI designer for a new Adobe air™
Some CSS properties allow a string of values to be substituted for many properties, with the value separated by a space.
Margin,pdding and Border-width allow merging of Margin-top-width, Margin-right-width, Margin-bottom-width, and so on, in the
The three-column layout is currently the most common page layout, the main page content in the middle of the column, the edge of the two columns to place navigation links and so on. The basic layout is usually placed under the title of three columns,
In Div+css layout, this is generally the case for the overall structure of the
and for the header section, certainly to display the site title, in addition to displaying the site title, you may want to show other important objects, such as the
CSS code simplification is very useful and necessary in the work. When writing CSS code, there is often redundant code, in order to improve the quality of the code and file compression to the minimum, so that the code is readable, have to simplify
1, navigation menu using pictures, FLASH
Navigation menu using pictures, flash of course Bi Chunwen would have been nice, but the search engine didn't know your pictures and flash. If you want to use a beautiful picture to navigate, you can use the
About the CSS Sprites technology optimization We can do how much, can reduce the number of requests. This is not done unilaterally, and it all depends on the combination of XHTML, CSS, CSS sprites pictures. So far there is no absolute optimization
The paragraph in the DIV+CSS layout uses the label, and the margin label defines the style for the upper and lower margins of the paragraph (indentation). Margin is defined as the top, bottom, left, and right four directions, and normally we can
Css hover changes sub-element and other element styles, css hover element styles
Reference address: Link
+ Indicates the next level element, and> indicates the child element.
1 2 3 4 5 6 7 8 14 element 115 16 17 element 318 element 2
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