我正在使用引导3的模板工作,下拉菜单看起来非常复杂,我不明白。
        <div class="dropdown">
      <button class="btn dropdown-toggle sr-only" type="button" id="dropdownMenu1" data-toggle="dropdown">
        Dropdown
        <span class="caret"></span>
      </button>
      <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li>
        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li>
        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
        <li role="presentation" class="divider"></li>
        <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li>
      </ul>
    </div>这是我的代码,我从http://prntscr.com/2g8507复制它。我的浏览器是空的,不知道为什么。检查元件处有0处错误。CSS文件是连接的,js也是。
发布于 2014-06-05 15:03:41
如果删除类sr-only,就会看到它。sr-only将高度/宽度设置为1 1px,并执行一些非常奇怪的隐藏活动。
https://stackoverflow.com/questions/20912048
复制相似问题