引导菜单,点击并显示下拉屏幕尺寸为768像素和1099

时间:2015-06-30 20:46:51

标签: css twitter-bootstrap

我正在使用bootstrap作为下拉菜单,目前如果屏幕尺寸超过768像素;当您将鼠标悬停时会发生下拉菜单,如果单击菜单项时发生下降,则会出现768PX下拉列表。它的完美。

但是我希望屏幕大小为768-1099px,它应该不会徘徊。它应该被点击,下拉菜单应该显示为移动版本。

<nav class="navbar navbar-default" role="navigation">
   <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" 
         data-target="#example-navbar-collapse">
         <span class="sr-only">Toggle navigation</span>
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">TutorialsPoint</a>
   </div>
   <div class="collapse navbar-collapse" id="example-navbar-collapse">
      <ul class="nav navbar-nav">
         <li class="active"><a href="#">iOS</a></li>
         <li><a href="#">SVN</a></li>
         <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
               Java <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
               <li><a href="#">jmeter</a></li>
               <li><a href="#">EJB</a></li>
               <li><a href="#">Jasper Report</a></li>
               <li class="divider"></li>
               <li><a href="#">Separated link</a></li>
               <li class="divider"></li>
               <li><a href="#">One more separated link</a></li>
            </ul>
         </li>
      </ul>
   </div>
</nav>

1 个答案:

答案 0 :(得分:0)

您可以轻松完成此操作:http://www.bootply.com/114896

将CSS包装在您要定位的任何大小的媒体查询中,例如:

CREATE FUNCTION temp_to_waypoint (temp)
RETURNS waypoint
AS
$$
        SELECT  (col1, col2, col3, ...)::waypoint
$$
LANGUAGE 'sql';

CREATE CAST (temp AS waypoint) WITH FUNCTION temp_to_waypoint (test) AS IMPLICIT;

SELECT  everything(temp)
FROM    temp;

由于