Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html UIKit下拉列表未下拉_Html_Angularjs_Uikit - Fatal编程技术网

Html UIKit下拉列表未下拉

Html UIKit下拉列表未下拉,html,angularjs,uikit,Html,Angularjs,Uikit,我已经用UIKit创建了一个下拉列表,但是当点击按钮时,什么也没有发生。我一直在查看文档和示例,我看不出有什么地方做错了 守则: <div> <div class="uk-margin"> <div class="data-uk-dropdown"> <!-- This is the element toggling the dropdown --> <div class="uk-but

我已经用UIKit创建了一个下拉列表,但是当点击按钮时,什么也没有发生。我一直在查看文档和示例,我看不出有什么地方做错了

守则:

  <div>
    <div class="uk-margin">
      <div class="data-uk-dropdown">
        <!-- This is the element toggling the dropdown -->
        <div class="uk-button-dropdown">
          <button class="uk-button">
            Cart
            <i class="uk-icon-caret-down"></i>
          </button>
          <div class="uk-dropdown">
            <ul class="uk-nav uk-nav-dropdown">
              <li>Test1</li>
              <li>test2</li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>

运货马车
  • 测试1
  • 测试2

需要一个唯一的参数:data uk下拉列表

像这样:

UiKit 2:

UiKit 3:
需要一个唯一的参数:data uk下拉列表

像这样:

UiKit 2:

UiKit 3: