1. Don't look at other people's replies. Code Right! You should think about why. When you come up with other people's tips, you will know the differences between yourself and others. 2. If you are a beginner, please do not read too many books. If
Address: http://bluehua.org/2008/11/01/96.html
Run the following commands in two browsers:Code
Run code
Run code
Run code
The three sections of code are OK in Firefox, but only the third section can run normally in IE6. The first two
Firefox has made four good things for getter and setter, __definegetter __,__ definesetter __, get and set. Ie can only simulate _ definegetter __.
Object. prototype. _ definegetter _ = function (attributename, hanlder) {If (typeof (hanlder) =
To improve the ease of use of the software, we generally fill in some sample text in the text field, of course you can also prompt, but if the space is insufficient, you can only select the former. When we focus on text fields, we certainly need to
When designing selector, when we use the descendant selector, we need to obtain all their descendants from the previous result set, and there may be repeated elements. Although it is very simple to exclude repeated elements, can we prevent them from
the button element has not been taken seriously in the past. In fact, it is much more semantic than and has a lot of formulation. However, there is a terrible bug in the IE button element. It always treats its innerhtml as its value. Therefore, if
Today, someone mentioned a strange problem in the QQ group, that is, the event object related to IE is sometimes not equal to itself. See the following:Code(Note: execute all the examples in this article in IE ):
click
window.
A bug in jquery1.41 was found. John resig needs to determine whether the current element is a form element when implementing its event proxy system (live.
VaR formelems =/textarea | input | select/I; // *********** formelems. Test (ELEM. nodename)
ArticleDirectory
Method 1
Method 2
Method 3
Method 4
Method 5
Method 6
Method 7
Method 8
In Ruby, we can multiply strings using the "*" operator, for example, "Ruby" * 2 returns "rubyruby ". In JavaScript,
ArticleDirectory
Border-collapse: collapse
Border-Spacing: 0
IE sends the signature into border-collapse: collapse
Table PartitioningCellspacing = "0"When necessary, it is necessary to perform multiple operations. These two
Following up on antranig's recent post about performance, I 'd like to address the issue of code design and its relationship to performance. antranig's article is very comprehensive and well-considered, and it provides us with a number of guidelines
it seems that jquery supports these two types of libraries at last. For their advantages, refer to goodbye Mouseover, hello mouseenter, a blog by the author of the reglib class library. We can observe the effect of IE.
mouseenter and
Today, websites in foreign countries are found unavailable, and there are not many websites that strictly abide by the xhtml1 rules. This year, I also heard that it is difficult to implement HTML5! There are still some labels, and the B label can
If jquery is put alone to do things, it is definitely doing well, but jquery is always present with other libraries, and some things are hard to prevent. See the Code ,
Data: function (ELEM, name, data) {// omitted}, removedata: function (ELEM,
mainly improves memory leakage
(Function () {window. eventutils = {eventfuncs: [], addevent: function (O, N, f) {var El, ID; // resolve element by ID if neededo = typeof (o) = 'string '? Document. getelementbyid (o): O; If (O. attachevent) {//
There are many differences between the setattribute of IE and the standard browser. You cannot use it to set the name attribute. You cannot set the type attribute after the element is added to the Dom, or use it to directly set inline event handlers
Multimedia accessibility, Ogg theora, and the year 2022.
Welcome back to "this week in HTML 5," where I'll try to summarize the major activity in the ongoing standards process in the whatwg and W3C HTML Working Group.
There is no big news this
Jquery's makearray has its limitations (1.3.4 and bug). I implemented one myself, but it involves n multiple auxiliary methods.
VaR Dom ={}, _ tostring = object. prototype. tostring, _ slice = array. prototype. slice; Dom. is = function (OBJ, type)
Original translation
Firefox 3.5 supports two W3C Dom traversal specifications. The first is the element traversal API, which is used to make the traversal element simple; the second is the nodeiterator interface, which is used to make it easy to
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