![](/img/trans.png)
[英]Bootstrap validation with ASP.NET framework 4.5 Web Forms
[英]Bootstrap with asp.net forms
我在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>
JQuery 2.0.x与某些较旧的浏览器不兼容。 使用最新的1.9.x
您需要/
<script src="/js/jquery-2.0.3.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
更完整
**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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.