C# 为什么可以';我不能在网页上使用滚轮吗?

C# 为什么可以';我不能在网页上使用滚轮吗?,c#,javascript,asp.net,asp.net-mvc-4,twitter-bootstrap-3,C#,Javascript,Asp.net,Asp.net Mvc 4,Twitter Bootstrap 3,这是一个艰难的过程,我不确定该提供什么样的信息。但这是我能想出的最好的办法。如果我遗漏了什么,请多看看 基本上,我使用的是一个性能非常好的引导主题,直到我尝试将其放到ASP.NETMVC4应用程序中。现在,主题和我的自定义设置仍然正确呈现,但我的鼠标滚轮在Chrome、Firefox和IE上无法使用(但箭头键可以工作) ASP.Net MVC 4 .Net 4.0版 BundleConfig.cs using System.Web; using System.Web.Optimization;

这是一个艰难的过程,我不确定该提供什么样的信息。但这是我能想出的最好的办法。如果我遗漏了什么,请多看看

基本上,我使用的是一个性能非常好的引导主题,直到我尝试将其放到ASP.NETMVC4应用程序中。现在,主题和我的自定义设置仍然正确呈现,但我的鼠标滚轮在Chrome、Firefox和IE上无法使用(但箭头键可以工作)

ASP.Net MVC 4

.Net 4.0版

BundleConfig.cs

using System.Web;
using System.Web.Optimization;

namespace Lubbock_Baseball_Academy__4._0_
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));


            bundles.Add(new StyleBundle("~/bundles/css").Include(
                    "~/Content/themes/openmind/css/bootstrap.css",
                    "~/Content/themes/openmind/css/font-awesome.css",
                    "~/Content/themes/openmind/css/animate.css",
                    "~/Content/themes/openmind/css/lightbox.css",
                    "~/Content/themes/openmind/css/syntax/shCore.css",
                    "~/Content/themes/openmind/css/shThemeDefault.css",
                    "~/Content/themes/openmind/css/color-default.css",
                    "~/Content/themes/openmind/css/width-full.css",
                    "~/Content/themes/openmind/css/style.css",
                    "~/Content/themes/openmind/css/lba.css"));

            bundles.Add(new ScriptBundle("~/bundles/theme").Include(
                    "~/Content/themes/openmind/js/jquery-1.10.2.min.js",
                    "~/Content/themes/openmind/js/jquery.cookie.js",
                    "~/Content/themes/openmind/js/bootstrap.min.js",
                    "~/Content/themes/openmind/js/jquery.mixitup.min.js",
                    "~/Content/themes/openmind/js/lightbox-2.6.min.js",
                    "~/Content/themes/openmind/js/holder.js",
                    "~/Content/themes/openmind/js/app.js"));
        }
    }
}
\u Layout.cshtml

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>@ViewBag.Title - My ASP.NET Application</title>

    @Styles.Render("~/bundles/css")
    @Scripts.Render("~/bundles/modernizr")

    <!-- Web Fonts -->
    <link href='http://fonts.googleapis.com/css?family=Playball' rel='stylesheet' type='text/css'>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
        <script src="js/html5shiv.js"></script>
        <script src="js/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="boxed animated fadeIn animation-delay-5">
    <header id="header" class="hidden-xs">
        <div class="container">
            <!--<div id="header-title">
                <h1 class="animated fadeInDown"><a href="index.html">Open <span>Mind</span></a></h1>
                <p class="animated fadeInLeft">Clean and elegant theme</p>
            </div> -->
        <div id="header-title">
            <div id="header-logo-wrapper">
                <img id="header-logo" src="/Images/lba-logo.png" class="img-responsive" alt="Lubbock Baseball Academy" />
            </div>
            <ul id="header-text-wrapper">
                <li><h1 id="header-title-text">Lubbock Baseball Academy</h1></li>
                <li><h2 id="header-slogan-text">Achieving Excellence Since 2012</h2></li>
            </ul>
        </div>

            <div id="social-header" class="hidden-xs">
                <a href="#" class="social-icon soc-twitter animated fadeInDown animation-delay-1"><i class="fa fa-twitter"></i></a>
                <a href="#" class="social-icon soc-google-plus animated fadeInDown animation-delay-2"><i class="fa fa-google-plus"></i></a>
                <a href="#" class="social-icon soc-facebook animated fadeInDown animation-delay-3"><i class="fa fa-facebook"></i></a>
                <a href="#" class="social-icon soc-instagram animated fadeInDown animation-delay-4"><i class="fa fa-instagram"></i></a>
                <a href="#" class="social-icon soc-pinterest animated fadeInDown animation-delay-5"><i class="fa fa-pinterest"></i></a>
                <a href="#" class="social-icon soc-linkedin animated fadeInDown animation-delay-6"><i class="fa fa-linkedin"></i></a>
                <a href="#" class="social-icon soc-github animated fadeInDown animation-delay-7"><i class="fa fa-github"></i></a>
            </div>
        </div> <!-- container -->
    </header> <!-- header -->


    @Html.Partial("_NavigationPartial")


    @RenderBody()


    <aside id="footer-widgets">
        <div class="container">
            <div class="row">
                <div class="col-md-4">
                    <h3 class="footer-widget-title">Sitemap</h3>
                    <ul class="list-unstyled three_cols">
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Facility</a></li>
                        <li><a href="#">Teams</a></li>
                        <li><a href="#">Pricing</a></li>
                        <li><a href="#">Instructors</a></li>
                        <li><a href="#">Contact</a></li>
                    </ul>
                    <h3 class="footer-widget-title">Subscribe</h3>
                    <p>Lorem ipsum Amet fugiat elit nisi anim mollit in labore ut esse Duis ullamco ad dolor veniam velit lorem ipsum dolor sit amet, consectetur adipisicing..</p>
                    <div class="input-group">
                        <input type="text" class="form-control" placeholder="Email Adress">
                        <span class="input-group-btn">
                            <button class="btn btn-success" type="button">Subscribe</button>
                        </span>
                    </div><!-- /input-group -->
                </div>
                <div class="col-md-8">
                    <img src="/Images/lba-logo.png" class="img-responsive" alt="Lubbock Baseball Academy" style="float: right; margin: 10px; max-width:300px" />
                </div>
            </div> <!-- row -->
        </div> <!-- container -->
    </aside> <!-- footer-widgets -->


    <footer id="footer">
        <p>&copy; 2013 <a href="#">Open Mind</a>, inc. All rights reserved.</p>
    </footer>

</div> <!-- boxed -->

<div id="back-top">
    <a href="#header"><i class="fa fa-chevron-up"></i></a>
</div>


<!-- Scripts -->
@Scripts.Render("~/bundles/bootstrap")
@Scripts.Render("~/bundles/theme")
@RenderSection("scripts", required: false)


</body>

</html>

@ViewBag.Title-我的ASP.NET应用程序
@style.Render(“~/bundles/css”)
@Scripts.Render(“~/bundles/modernizer”)
  • 卢伯克棒球学院
  • 自2012年以来实现卓越
@Html.Partial(“导航部分”) @RenderBody()
  • 订阅 在劳动和社会生活中,对动物的保护是最重要的

    订阅 &抄袭;2013,inc.版权所有

    @Scripts.Render(“~/bundles/bootstrap”) @Scripts.Render(“~/bundles/theme”) @RenderSection(“脚本”,必需:false)
    有什么想法吗?


    再说一次,我不完全确定还能给你看什么。如果你还有什么想看的,请告诉我

    body/html
    也没有
    overflow-y:hidden
    吗?@它没有。只搜索了整个项目。一件不相关的事情:你两次包含Respond.js,一次在Modernizer包中,一次在“lt IE 9”中,如果在Modernizer中包含,html5shiv可能也是如此。在没有看到js和css文件的情况下,很难帮助你,你能提供一个链接到这个运行在某处吗?@Tor Erik nice catch。谢谢您可能有一个事件处理程序连接到禁用它们的
    鼠标滚轮
    滚轮
    事件。Chrome Developers工具让您知道哪些事件处理程序附加到元素。我会尝试搜索使用这些事件的任何事件(这会阻止默认行为)。您也可以在代码中搜索这些事件。