ie条件注释已彻底失效,仅在ie5–ie9中有效,ie10+及所有现代浏览器均不解析;应改用javascript检测msie或trident标识并动态插入提示。

IE条件注释已彻底失效,无法向现代IE或Edge用户显示提示
直接说结论:<!--[if IE]> 这类写法在 IE10+、Edge、Chrome、Firefox 等所有当前主流浏览器中**完全不解析、不执行、不生效**。它只在 IE5–IE9(Windows版)中有效,而这些版本早已停止支持,绝大多数用户根本不会遇到。如果你现在加了 <!--[if IE]><p>请升级浏览器</p><div class="aritcle_card flexRow artxards">
<div class="artcardd flexRow">
<a class="aritcle_card_img" rel="nofollow" href="/xiazai/skill5806" title="html-deploy"><img
src="https://img.php.cn/upload/skill/000/000/081/179066538882434.jpg" alt="html-deploy" onerror="this.onerror='';this.src='/static/lhimages/moren/morentu.png'" ></a>
<div class="aritcle_card_info flexColumn">
<a rel="nofollow" href="/xiazai/skill5806" title="html-deploy" class="overflowclass">html-deploy</a>
<p class="overflowclass">使用 htmlcode.fun 将 HTML 内容或文件部署到网页,适用于用户要求“部署到网页”“托管此 HTML”“生成此前端...的实时链接”等场景。</p>
</div>
<a rel="nofollow" href="/xiazai/skill5806" title="html-deploy" class="aritcle_card_btn flexRow flexcenter"><b></b><span>下载</span>
</a>
</div>
</div><![endif]-->,实际结果是:所有用户都看不到这段提示——包括仍在用 IE11 的人。
为什么
前端入门到VUE实战笔记:立即使用
在学习笔记中,你将探索 前端 的入门与实战技巧!










