浏览器兼容设置

2023-12-28 11:26:06

1、
法1:使用ie支持的选择标签,只对ie有效,对其他浏览被当做注释。
ps:默认加载新样式;增加ie的选择标签。
https://blog.csdn.net/avsibao8416/article/details/101696561#:~:text=IE%E6%9D%A1%E4%BB%B6%E6%B3%A8%E9%87%8A%E6%98%AF%E5%BE%AE%E8%BD%AF%E4%BB%8EIE5%E5%BC%80%E5%A7%8B%E5%B0%B1%E6%8F%90%E4%BE%9B%E7%9A%84%E4%B8%80%E7%A7%8D%E9%9D%9E%E6%A0%87%E5%87%86%E9%80%BB%E8%BE%91%E8%AF%AD%E5%8F%A5%EF%BC%8C%E4%BD%9C%E7%94%A8%E6%98%AF%E5%8F%AF%E4%BB%A5%E7%81%B5%E6%B4%BB%E7%9A%84%E4%B8%BA%E4%B8%8D%E5%90%8CIE%E7%89%88%E6%9C%AC%E6%B5%8F%E8%A7%88%E5%99%A8%E5%AF%BC%E5%85%A5%E4%B8%8D%E5%90%8Chtml%E5%85%83%E7%B4%A0%EF%BC%8C%E5%A6%82%EF%BC%9A%E6%A0%B7%E5%BC%8F%E8%A1%A8%EF%BC%8Chtml%E6%A0%87%E7%AD%BE%E7%AD%89%E3%80%82,%E5%BE%88%E6%98%BE%E7%84%B6%E8%BF%99%E7%A7%8D%E6%96%B9%E6%B3%95%E7%9A%84%E6%9C%80%E5%A4%A7%E5%A5%BD%E5%A4%84%E5%B0%B1%E5%9C%A8%E4%BA%8E%E5%B1%9E%E4%BA%8E%E5%BE%AE%E8%BD%AF%E5%AE%98%E6%96%B9%E7%BB%99%E5%87%BA%E7%9A%84%E5%85%BC%E5%AE%B9%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95%E8%80%8C%E4%B8%94%E8%BF%98%E8%83%BD%E9%80%9A%E8%BF%87W3C%E7%9A%84%E6%95%88%E9%AA%8C%E3%80%82
https://blog.csdn.net/qq_32617703/article/details/103597642?spm=1001.2101.3001.6650.11&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-11-103597642-blog-101696561.235%5Ev40%5Epc_relevant_rights_sort&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-11-103597642-blog-101696561.235%5Ev40%5Epc_relevant_rights_sort&utm_relevant_index=12

法2:console在非调试模式下无效?
if(window.console){
console.log(“aaaaaa”);
}

		if(typeof console !== "undefined"){

		  console.log("hello");

		}

法3:直接设置element的style

https://blog.csdn.net/qq_38629000/article/details/81981862	 

原因:放在body最后加载的css,html已经完成渲染,即使加载完css也用不上了。

文章来源:https://blog.csdn.net/heroicpoem/article/details/135258513
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。