anti-aliasing fillet & Lt;b class= "spiffy1" > this is content http://www.spiffycorners.com/index.php?sc=spiffy&bg=3847B4&fg=D68A88&sz=3px < ;/b>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to
One of the pictures needed:
aa I am Chinese Please input: Jb51.net
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
browser's conditional annotation theory, use the following example to explain this problem
X Html
The following code is a test of the effect of a conditional comment statement in Microsoft's IE browser
Copy Code code as follows:
I. Case sensitivity
The element names defined in CSS,CSS are case-sensitive when used in XHTML. To avoid this error, I recommend that all defined names be lowercase.
Two. Do not need to quote the background picture path
To save bytes, I recommend
Detection results in the speed diagnostics of the Web site of the card network:
The HTML page has successfully enabled gzip compression
The CSS file was not successfully enabled for GZIP compression
Later, the study found that IIS enabled
In addition, sometimes you might want to know the specifics of the style added to an element or link. The Style property can only read the inline form of the element, so if you want to read the other styles, you'll have to find another
Offset
The offsettop and offsetleft two attributes of the elements in all browsers are useful. They will give you the coordinates of the element relative to the parent element.
This code looks up offsetparent, and then adds offsettop and offsetleft.
The newly written JS client UI: The idea of wrapping mode, the rich client UI is attached to ordinary elements like a shell. Part of the UI uses two implementations, one that directly uses HTML,CSS,JS, a file that uses JS directly (the end of the UI)
Using jquery to modify CSS with!important style properties
The external style is:
div.test{
Width:auto!important;
Overflow:auto!important
}
by $ ("Div.test"). CSS ("width", "100px"); and $ ("Div.test"). CSS ("width", "100px!important");
The examples in this article describe ways to avoid smarty conflicts with CSS syntax. Share to everyone for your reference. The specific analysis is as follows:
People who are familiar with CSS will soon find that there is a conflict between the
The effect is as follows:
Using jquery we can easily achieve the above effect, the code is as follows:
Copy Code code as follows:
jquery odd and even CSS effect
Line 1th
Line 2nd
Line 3rd
Line 4th
Line 5th
1. Loading required files in an external CSS file@importurl (STYLE.CSS);
Can only be used in CSS files or in style labels
2. Simply load an external CSS file on the pageDocument.createstylesheet (Cssfile);
2. Create a CSS link tag with the
In the development of Web projects, JS,CSS files will become more and more with the development of the project, which brings some problems to the performance, such as the more JS,CSS the page introduced, then to increase the number of HTTP requests,
One, local change styleIt is divided into three kinds of changing direct style, changing classname and changing csstext. It is to be noted that:
Note Case:
JavaScript is very sensitive to the case, ClassName can not write "n" as "n", Csstext can not
With JS how to get the CSS in the div margin, padding, height, border and so on. You may say you can use document.getElementById ("id") directly. Style.margin get. But you said you can only get properties of the style written directly in the label,
The example of this article describes the JS+CSS implementation of a pop-up centered background semi-transparent div layer method. Share to everyone for your reference. The implementation methods are as follows:
Copy Code code as follows:
The example of this article describes the JS+CSS implementation of the MSN Style tab effect code. Share to everyone for your reference, specific as follows:
This is a page from the MSN website tab, fresh light blue style, news class, information
css+javascript implementation: Create a full screen div, use absolute positioning, so that it can detach from the document flow, not affect other elements, and set it to semi-transparent state, Of course, this transparency can be arbitrarily
First, native JS:
/** * Load JS and css file * @param jsondata.path prefix path * @param jsondata.url need to load the JS path or CSS path * @param jsondata.type type JS or CSS required to load
* * Function Loadwritefiles (jsondata)
Brief tutorials
This is a very cool effect of pure CSS3 with transition animation effect of the page bar UI design. The first, last, previous, and Next buttons of the page bar will have a very nice smooth stretch animation effect when the mouse is
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