This blog post main record I encountered in the actual application of the Google browser and some JS incompatible issues, over time, the content of this blog post may be more and more, may not be a bit (I think Google is certainly very good at the moment).
1. Google Chrome is not compatibledocument.getElementById ("Companyli"). style= "Display:block";
Using JS to change the display and hiding of page elements:
document.getElementById ("Companyli"). style= "Display:block";//Display
document.getElementById ("Companyli"). style= "Display:none";//Hide
The above two lines of code Google, 360, IE11 incompatible, Firefox browser compatible.
document.getElementById ("Companyli"). style.display= "block";//Display
document.getElementById ("Companyli"). style.display= "None";//Hide
The above two lines of code are compatible with each large browser.
Of course you can also use jquery, that's a lot easier, you can use
$ ("#元素Id"). Hide ();//Hidden
$ ("#元素Id"). Show ();//Display
You can also use $ ("#元素Id"). Toggle (); To control the display and hiding of elements.
Thank you for your patience to read the whole post!!!
If there are any errors or improper articles, please treatise!
you have any comments or suggestions, you can send me an e-mail, you can also leave a message below, I saw the first time to reply to you, thank you!