Home >Web Front-end >JS Tutorial >The difference between using custom tags in IE Firefox_javascript tips

The difference between using custom tags in IE Firefox_javascript tips

WBOY
WBOYOriginal
2016-05-16 18:44:33881browse

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");
}

Statement:
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