Notes on browser compatibility @Xan

 1. IE kernel browser: html tag <a> link problem,

  • href="" Click to refresh the current page
  • href="javacript:;" This usage is incorrect, if it is used in this way, the browser will access "javascript:;"
  • href="javacript:void(0);" means to execute a javascript statement after clicking the link: void(0); this statement means to do nothing, it is an empty statement
  • href="#" This has nothing to do with Javascript. It is not that there is no link, but to the top of the current web page. If your web page is relatively long, you need to pull down the scroll bar far away. At this time, if you want to quickly return to the top , then use this link, click it, and the scroll bar of the web page will go to the top. This usage of # to identify the link is called anchor.
  • Use the a tag to call the function, the writing method <a href="javascript:method()"> is not compatible in the browser of the IE core, the compatible writing method is: <a onclick="method()">

2. IE kernel browser: When the link address of the tag <a> has Chinese, it will report 400 when accessing, the solution: use the js method encodeURIComponent() to transcode the Chinese

3. Set the 360 ​​browser to use rapid mode, and add the tag <meta name="renderer" content="webkit"> to the page

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325211662&siteId=291194637