简体   繁体   English

JQuery选项卡不起作用 - 没有错误

[英]JQuery tabs doesn't work - no error

This is what I have included: 这就是我所包含的内容:

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <script src="http://code.jquery.com/ui/1.11.2/jquery-ui.js"></script>

  <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
  <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">

  <script src="tabs.js"></script>

This is in my html: 这是我的HTML:

            <div id="#tabs">
                <ul class="nav nav-tabs">
                    <li><a href="#tab1">Informationen</a></li>
                    <li><a href="#tab2">Kontakten</a></li>
                    <li><a href="#tab3">Nachrichten</a></li>
                    <li><a href="#tab4">Messages</a></li>
                </ul>
                <div id="tab1">dsds</div>
                <div id="tab2">dsds</div>
                <div id="tab3">dsds</div>
                <div id="tab4">dsds</div>
            </div>

and this is in tabs.js: 这是在tabs.js中:

$(document).ready(function() {
    $( "#tabs" ).tabs();
});

After page loading there is no error, all files are found, but jQuery tabs do absolutely nothing and all divs are visible. 页面加载后没有错误,找到所有文件,但jQuery选项卡什么都不做,所有div都可见。 It is the simplest example of tabs, what is wrong here? 这是标签最简单的例子,这里有什么问题?

<div id="tabs">更改<div id="#tabs"> <div id="tabs">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM