DefinitionIe5 and later versions support the use of expressions in CSS to associate CSS attributes with javas alias expressions. the CSS attributes here can be inherent attributes of elements or custom attributes. That is to say, the CSS attribute
In the morning I saw Mr. Situ's Js version of the attribute selector (http://www.cnblogs.com/rubylouvre/archive/2009/10/27/1590102.html), but also inspired me to have a deep understanding of CSS selector learning desire, organized here for future
CSS declaration method
There are three methods to declare CSS:
I. Basic Declaration: the most typical CSS declaration method.If element {property: Value} is expressed in Chinese, that isComponent (TAG) {property name: Set Value}For example:H3
When I was developing a color picker yesterday, I wanted to locate the ecliper in a pop-up box. So I used the position: absolute attribute. Obtains the position of the clicked element. The method for obtaining its position is to use $ (this). offset
Paddingpadding-toppadding-rightpadding-bottompadding-leftmarginmargin-topmargin-rightmargin-bottommargin-left
Padding: Top, right, bottom, left; {clockwise from top}
It can be indicated by padding-top, padding-bottom, padding-left, and
List-style-type (specified type) List-style-image (specified image) List-style-position (specified position) List-style (Comprehensive setting) marker-offset (not supported)
You can use list-style to set the type, image, and position without
How can we make the text look like water, and the picture is like a stone in the water to let the water flow open?
You can use table or Div to set several carriers, but this is definitely not a good choice.ProgramPersonnel.
The IMG float
I have received a question from readers of Yuan mafei today. I think it is more valuable. Many readers may encounter similar problems when studying CSS. So here we will explain in detail.
His problem is:
"I am a CSS-loving reader. I have
-Maximum width/height
IE6 cannot read the max-width and max-height attributes, but ie supports its own JavaScript attribute expression,For exampleDiv {width: expression (250 + "PX")} And Div {widt: 250px}
It is consistent in IE's read!
However,
The box model is the core of CSS. The modern web layout design simply refers to the arrangement and nesting of a pile of boxes, and the box model and their placement control are mastered, we will find that the complex pages are not the same. However,
CSS compatibility highlights: doctype affects CSS Processing
FF: When Div sets margin-left and margin-Right to auto, it is already centered, and IE is not working.
FF: When you set text-align for the body, you must set margin: auto (mainly
CSS limits the maximum width of the image (this article is from the original site, please note the source for reprint !) When creating a webpage, we often need to limit the width of images that may appear in a region, otherwise it may make the page
Paste a useful list:
Excellent JavaScript frameworks such as jquery, mootools, and prototype have a variety of powerful functions, including drawing web charts, using these frameworks and corresponding plug-ins, we can easily implement curves,
Original article from: a list apart Author: Sergio javasarrealOnestab [2004.02.28] "... If there is a technology that uses CSS to flexibly add shadows to any block-level element, and can automatically expand with the size of the content, but also
How to Use CSS to customize a DataGrid Style
The following is a CSS file I wrote.CodeCopy to a tablet and save it *. CSS
For example, the name is 1024.css.
/* --------------------------- DataGrid --------------------------------*/.
Today, a reader asks about the effect of switching an image when making the mouse over. This effect is also called a roll-over effect ). Originally, most of these effects were implemented using Javascript. In fact, CSS can be easily used for making
Readers of colorandy raised the following question about page layout:
"If there is a footer layer, I want it to appear at the bottom of the entire page without changing the content of the page, what should I do in CSS? For example, it contains some
1. ProCSSor
Whether you copy and paste your code, upload a file, or optimize the URL of the CSS code, ProCSSor can easily handle these tasks for you, you can even choose a simple, beautiful, and great Cleanup mode based on your preferences.
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.