我在我的asp.net表单应用程序中使用引导程序。我在项目中有所有必需的文件:
当我在根目录中添加内容页时,站点工作得很好;所有引导功能都正常工作。但问题是,当我把内容放在另一个文件夹(例如。( webapp/content/default.aspx),该站点在IE中不工作。在其他浏览器上,它会显示内容,但引导程序的功能根本不起作用。
我的剧本:
<script src="js/jquery-2.0.3.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>发布于 2013-12-16 14:47:13
JQuery 2.0.x不能与一些旧的浏览器相媲美。使用最新的1.9.x
发布于 2013-12-16 14:39:25
你需要一个.
<script src="/js/jquery-2.0.3.min.js"></script>
<script src="/js/bootstrap.min.js"></script>更完整
发布于 2013-12-16 15:28:16
**Try using the files:**
ie8-responsive-file-warning.js,
html5shiv.js and
respond.min.js.
Make the Downloads and place the files in js folder.
**Use the paths**
"@Url.Content("~/patch/file.js")"
****Example****
<head>
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="@Url.Content("~/js/ie8-responsive-file-warning.js")"></script><![endif]-->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="@Url.Content("~/js/html5shiv.js")"></script>
<script src="@Url.Content("~/js/respond.min.js")"></script>
<![endif]-->
<script src="@Url.Content("~/js/jquery-2.0.3.min.js")"></script>
<script src="@Url.Content("~/js/bootstrap.min.js")"></script>
</head>https://stackoverflow.com/questions/20613362
复制相似问题