C# 转盘不工作
我的旋转木马有问题。直到昨天它还工作得很好,但是发生了一些事情,现在这张照片无法拍摄。。仅显示第一张图片,即使单击下一个图标,它仍不会移动。我的jquery已加载,控制台不会显示任何错误C# 转盘不工作,c#,jquery,asp.net,twitter-bootstrap-3,carousel,C#,Jquery,Asp.net,Twitter Bootstrap 3,Carousel,我的旋转木马有问题。直到昨天它还工作得很好,但是发生了一些事情,现在这张照片无法拍摄。。仅显示第一张图片,即使单击下一个图标,它仍不会移动。我的jquery已加载,控制台不会显示任何错误 <section class="full-screen"> <div id="myCarousel" class="carousel slide"> <!-- Indicators --> <ol class="carousel
<section class="full-screen">
<div id="myCarousel" class="carousel slide">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
<li data-target="#myCarousel" data-slide-to="3"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<asp:Image src="~/Images/Carousel/Carousel-4.jpg" alt="Chania" runat="server" />
<div class="carousel-caption">
<h3>Chania</h3>
<p>The atmosphere in Chania has a touch of Florence and Venice.</p>
</div>
</div>
<div class="item">
<asp:Image ImageUrl="~/Images/Carousel/Carousel-2.jpg" alt="Chania" runat="server" />
<div class="carousel-caption">
<h3>Chania</h3>
<p>The atmosphere in Chania has a touch of Florence and Venice.</p>
</div>
</div>
<div class="item">
<asp:Image ImageUrl="~/Images/Carousel/Carousel-3.jpg" alt="Flower" runat="server" />
<div class="carousel-caption">
<h3>Flowers</h3>
<p>Beatiful flowers in Kolymbari, Crete.</p>
</div>
</div>
<div class="item">
<asp:Image ImageUrl="~/Images/Carousel/Carousel-1.jpg" alt="Flower" runat="server" />
<div class="carousel-caption">
<h3>Flowers</h3>
<p>Beatiful flowers in Kolymbari, Crete.</p>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="icon-prev"></span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="icon-next"></span>
</a>
</div>
</div>
</section>
请使用
“~/Scripts/jquery-2.1.4.js”或“~/Scripts/jquery-2.1.4.min.js”
使用简单的方法调用javascript,比如拖放你的主页或aspx页面的链接…,当你调用javascript,比如你调用的可能是它反映了你的页面加载事件,所以…检查网络是否存在404错误问题是我有一个自定义脚本,我将它添加到css文件中,我应该将它添加到页面本身。现在它正在工作。
public static void RegisterBundles(BundleCollection bundles)
{
// Order of CSS or JS
// 1. JS
// 2. CSS
#region JS / Script
bundles.Add(new ScriptBundle("~/bundles/jQuery").Include(
"~/Scripts/jquery-2.1.4.js",
"~/Scripts/jquery-2.1.4.min.js",
"~/Scripts/bootstrap.js",
"~/Scripts/google-maps.js",
"~/Scripts/jquery-smoothScrolling.js",
"~/Scripts/full-slider.css",
"~/Scripts/bootstrap.min.js",
"~/Scripts/carousel.js"
));
#endregion
#region CSS / Style
bundles.Add(new StyleBundle("~/bundles/BootstrapCss").Include(
"~/Content/bootstrap-theme.css",
"~/Content/bootstrap.min.css",
"~/Content/bootstrap.css",
"~/Content/site.css",
"~/Content/full-slider.css",
"~/Content/simplelightbox.css",
"~/Content/simplelightbox.min.css",
"~/Content/simplelightbox.scss",
"~/Content/simple-sidebar.css"
));
#endregion
}