Home > Web Front-end > JS Tutorial > body text

The difference between using custom tags in IE Firefox_javascript tips

WBOY
Release: 2016-05-16 18:44:33
Original
851 people have browsed it

1. The custom tags of firefox and IE can be unified through the following styles

2. The definition of custom tags can also be unified


3.js has a difference in getting the value of the custom label (if there is a unified method, please leave a message)
function f_test(){
var mylabels;
if(IE)/ /If it is ie
mylabels = document.getElementsByTagName("mylabel");
else//If it is FF
mylabels = document.getElementsByTagName("TEST:mylabel");
}

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!