English 中文(简体)
jquery 下降在 mouse 上如何改变它
原标题:jquery drop down onmouse over how to change it

< a href=> http://www.slideshare.net/tag/zendcon09?sort=views" rel="nofollow".net/tag/zendcon09?sort=views 以Twitter Bootsstrap为基础, 并在鼠标上、 靴杆页面上下调菜单反应。 插件在点击时如何切换? 我查看了源代码, 但却找不到解决方案, 甚至把代码放进 Diff 工具, 什么都没有 。

谁能告诉我怎么把它抄下来吗?

最佳回答

You can do it only with CSS ! Just add this code to match the menu on hover :

 ul.nav li.dropdown:hover ul.dropdown-menu{
        display: block;    
 }

您可以在这里看到一个例子:http://jsfidle.net/ekjxu/104/

问题回答

我相信他们只是在改变

display:none;

display:block;

在鼠鼠上,它可以很容易地完成 只要Cs做一些类似的东西

.dropdown
{
  display: none;
}

.dropdowncontainer:hover .dropdown
{
  display: block;
}




相关问题
PHP Combo Box AJAX Refresh

I have a PHP page that currently has 4 years of team positions in columns on the page. The client wants to select the players in positions and have first, second and thrid choices. Currently the page ...

jquery + ajax + json + fill dropdown list not working

I m pretty sure i am almost there....but i cannot figure out how to iterate through json objects and fill a dropdown list. Here is the js code: My JSON data returned:{"name":"County1","name":"County1"...

Gridviews and DropdownLists

Is it possible to change the data source of a dropdown list in a gridview from another dropdown list selected index changed method in the same gridview? for example I have a dropdown that needs to ...

Adding a new value to the drop down list box

I have a drop down list box which has one of the values to be others. I want to move these value to the last. Please help me with this. The code i am using is as follows ddlAssetsCountryOthersone....

Show hide div using codebehind

I have a DropDownList for which I am trying to show a div OnSelectedIndexChanged but it says OBJECT REQUIRED. I am binding the DataList in that div: aspx: <asp:DropDownList runat="server" ID="...

Why might dropdownlist.SelectedIndex = value fail?

I have a dropdown list that I am binding to a datatable. Here is the code I am using to do it: ddlBuildAddr.DataSource = buildings ddlBuildAddr.DataTextField = "buildingName" ddlBuildAddr....

热门标签