// Modify the Value property of the element object to ' the new value 'Element.value = ' The new value '; // equivalent to element.setattribute (' value ', ' the new value ')The advantage of SetAttribute is that you can modify any one of the
SetAttribute are supported by various browsers, but in IE7 the following versions, some attribute values are still different, such asObj.setattribute ("Class", "ClassName")In IE8 and other mainstream browser can be effective, but in IE7 the
Class and ClassName Compatibility methods:Object.setattribute ("Class", "content")Can be set successfully in IE8, Chrome, Firefox, Opera10, but cannot be set under IE7.Object.setattribute ("ClassName", "content")Only IE7 can be set successfully, but
For front-end users, they always need to deal with compatibility, CSS compatibility, and JS compatibility. Here I summarize the compatibility of getattribute () and setattribute () in different browsers and how to solve these problems:
1
Li Wu:Learn to think more, honouring teachers save Thanksgiving. Leaf See Root 321, rivers with one.Meekness Conscience Lord, willing to do without regrets to the most bitter. Reading exercise strong body and mind, Prudential advised and the line
When there is a default value in the text input box of the form, the default value is automatically cleared when the input box is focused. If no value is entered, the default value is restored when the focus field is left ?), This usually occurs
Set Request. setattribute ("guestbook. display. list", list) in execute of action );
In JSP, obtain requestscope ['guestbook. display. list.
Input readex. Do in browsing to jump to display. jsp.
After modifying redirect = "false" in forward
In IE6/7, you cannot set the style attribute of an element through setattribute or get the style attribute value of an element through getattribute. It gets a style object.
As follows:
Div test
IE8/9/Firefox/Safari/Chrome/Opera: "Color:
Today, JS dynamically sets the class attribute for the label to apply different class labels to display different styles ~ It is found that adding a class under IE6 and FF is somewhat different.
The basic syntax is as follows:
Object
.
VML drawing board ② script -- VMLgraph. js, XMLtool. js? 1.1.29 script
*************
* VMLgraph. js
*************
Var xo = 0;
Var yo = 0;
Var ox = 80;
Var oy = 20;
Var dx = 0;
Var dy = 0;
Var drawKey = false;
Var itemID = 0;
Var ShapeItemNum =
I. What is SVG?
SVG is a 2D graphic description language released by W3C in 1999. It is a markup language based solely on XML format.
The full name is extensible vector graphics, which is very different from traditional Raster graphics (JPG, PNG,
I. What is SVG? SVG is a 2D graphic description language released by W3C in 1999. It is a markup language based solely on XML format.The full name is extensible vector graphics, which is very different from traditional Raster graphics (JPG, PNG, GIF,
I. What is SVG?
SVG is a 2D graphic description language released by W3C in 1999. It is a markup language based solely on XML format.
The full name is extensible vector graphics, which is very different from traditional raster graphics (JPG, PNG,
IE is a different type of browser, but the solution is quite simple. When using Firefox and Safari, you can use the setArribute method of the element to set the class attribute of the element. IE is a different type in the current browser, but the
One: what is SVG
SVG is a 1999 2D graphic description Language published by the consortium, a purely XML-based markup language, SVG
The full name is a large difference between scalable vector graphics and traditional raster graphics (JPG, PNG, GIF,
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.