我看到了这样一段代码:
<!--[if IE 6]>
<script type="text/javascript">
function pageLoad() {
//$find('mpeIeWarning').show();
document.getElementById('divIE6').style.display = "";
}
</script>
<![endif]-->
是
<!--[if IE 6]>
<![endif]-->
评论标签?或者做一些特别的事情,说实话,我从来没有用过这个东西。
最佳答案
仅当浏览器实际上是 Internet Explorer 6 时,它才会添加脚本。这是一种特殊类型的注释,称为条件注释,您可以在此处阅读 http://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx
关于javascript - <!--[if IE 6]> <![endif]--> 在 ASP.Net 的 asp 文件中做什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25779519/