The test environment is Firefox, IE is not measured.Directly gives the result: the fastest is the function setcss (els,name,val) {} This method of setting style, the second is to change the class name, the slowest is CSS ()
Recommended simple
Author: Loko
Look at this one first.
Copy Code code as follows:
Under IE is no problem, when the mouse stroke, there will be a small hand shape, but in FF, only the first row to be effective, this is effective because
Use classes as sparingly as possible, because you can cascade the recognition, such as:. News H3 without having to add class to the H3
3. With no existing elements to distinguish between the use of Div
Home
about us
can be changed
See most of the pages in some Web sites written like this
And a lot of websites are using link
And like Google Baidu 163 and other sites they are directly written in the Web page
Of course, the advantage of linking link and import imports is
The looks like this:
Internal Medicine Surgery Obstetrics Pediatrics Facial features & Lt;a href= "/m/page_40.html" title= "Chinese Medicine" > TCM branch Emergency department stomatology Department Pain Rehabilitation
css add shadow to picture Mouse Move up to show sleek shadows var imgbg=document.getelemeNtbyid (' Profileavatar '). getElementsByTagName (' I ') function show () {for (I=0;i
[Ctrl + A All SELECT Note: If the need to introduce
Photo News one Photo News II &L T;div id= "id_portal_imgnew3" class= "Pp_portal_imGnew "> Photo news three Photo news four 1 2 3 4
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to
CSS Graphics switching practice tutorial from snwebsite 123
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Adaptive layout is a common form of web page design, adaptive layout can be based on the size of the browser window, automatically change its width and height values, is a very flexible layout, a good adaptive layout site for different resolution of
css hover hint Do you know about the cloud-dwelling community? Cloud-dwelling community is a quality Learning Resource station, mainly collecting various learning materials.
[Ctrl + A All SELECT Note: If the need to introduce
For example:
some content
Previewing this code at this point, we will find that the outermost parent element float container is not displayed. This is because the child element is floating, leaving the document stream, causing the parent
Do not know home has not encountered such a situation: in the CSS control picture size, if the width of the picture is written dead, such as img{width:500px;}, of course, if the picture width is greater than 500px can be very good control it does
I use a symbol to replace, but found how the display is relatively small, and then I found that my font all defined as Tahoma, as long as the use of "song body" on the normal.
&L t;head> pre-list small squares--design by cloud habitat
Very boring to put n a filter heap together to become the following effect, hehe
ie5.5+ only
聱Teeth chorma glow dropshadow blur wave
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Here's an example, which is the most basic filter application, in fact, the combination of two or several different filters will get unexpected results, encounter problems oneself more hands-on try on OK, of course, pay special attention to color
CSS table exceeds hidden " fixed layout algorithm. In this algorithm, the horizontal layout is based solely on the width of the table, the width of the table border, the spacing of the cells, the width of the columns, and the algorithm of
Although there have been many references to this in a number of documents, many friends still make mistakes on these issues. Today we look at these CSS techniques, read carefully, perhaps you do not fully understand, you can search, expand the
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