Just read the source code of jquery, which on the CSS and classname operation of the idea is really good, it is worth learning.
The definition part of JQuery.className.has is implemented by the regular, in fact, the use of the IndexOf method of the
Translate it, the original: http://15daysofjquery.com/style-sheet-switcheroo/12/
Can be applied to a wide range, especially with the standard framework of the site, such as Pjblog can, as long as through a simple click, you can let the site in an
css Menu Demo product Introduction product One Products One products one products one product one product one Service Introduction service two service two ;li> Service II Service two service two Service two service two
write by Ahanan environment:ie7+ie6 Time 2008-7-30 2008-7-30 2008-7-30 2008-7-30 2008-7-30 2008-7-30 2008-7-30 2008-7-30 2008-7-30
2008-7-30
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to
The benefits are:
Compatible Ie,firefox,opera;
Conducive to the integrity of the content, SEO-friendly;
No background program processing;
You can adjust the length of the interception at the front desk.
A bad place:
Can not automatically determine
Recently, I often have friends to ask me some of the CSS problems encountered in the work. They are always not good at controlling CSS, affecting the efficiency of CSS play. Let me analyze and summarize the error and help you to use CSS more easily.
Screen IE browser (ie do not show)
*:lang (en) Select {font:12px!important}/*ff Dedicated * *
Select:empty {font:12px!important}/*safari Visible * *
Here the Select is a selector and is replaced according to the situation. The second sentence is
inline style
embeded style
External style
User Style
Inline style is ugly, they travel in HTML documents, and the HTML elements twist into a group, to the Web front-end developers caused a lot of trouble. They tend to appear in this guise:
this is
A: Do not set postion, general nesting relationship
B: Only outside Div set relative, general nesting relationship
C: Only inside Div set Absolute, the document is nested relationship, the page inside Div float [not float], relative to the page
CSS element Positioning
1. position:static| No locationPosition:static is the default value for all elements to be positioned, usually without reference, unless there is a need to cancel the inheritance of other positioning
Example#div-1 {position:
A few days ago a friend who made web design asked me this question: how to achieve the translucent effect of the image through CSS, and can be supported on both IE and Mozilla. Here are my methods to share with you.
The following illustration is a
As a programmer, often need to face a problem is in the news, such as information in the title list, often in order to adapt to the width of the table, the need for the long title of the text to intercept and at the end of the truncated text with
IE5 and its later versions support the use of expression in CSS to associate CSS properties with Javas cript expressions, where CSS attributes can be intrinsic or custom attributes of an element. This means that the CSS property can be followed by a
Just think of these years of writing CSS and XHTML experience, summed up into a "Chiven" to share. Helpless I have been high, really a bit powerless. Then on second thought, you can use the form of notes to show, so you do not have to worry about
Author: cutsin
Original address: http://www.moonless.net/blog/2007/09/csspositionz-index.html
Note: This article is only for the exchange of use, if there are improper places to welcome criticism, but please specify the details by, thank
Using abbreviations can help reduce the size of your CSS files and make it easier to read. The main rules for CSS abbreviations are as follows:
Color
16 The color value of the binary, if the value of each two digits is the same, you can abbreviate
So I would like to use a convenient to call and update the method to achieve, the result is fulfilled. Let's summarize this technical point as follows:
Before this I also looked for the current network of the most popular approach to the
There are two ways to solve the problem
One is , you use the Apache server, HTML does not give Tomcat processing, so you can not find the HTML and other static resources, so you first stop Apache, and then only to try Tomcat cat.
The
second
A recent project, you need JavaScript dynamic insert style, the result of the previous method is invalid! Check for 2 hours of reason unexpectedly is own hand cheap, this last say!
JavaScript insertion styles are widely used in front-end
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