我只想问为什么引导程序中的下拉子菜单不起作用,我只是按照此链接中的说明:(http://getbootstrap.com/2.3.2/components.html)但仍然是下拉菜单上的子菜单没有出现.顺便说一下,我没有更改或覆盖CSS中的类.
这是我的代码!:)
<li class='dropdown'><a class='dropdown-toggle active' data-toggle='dropdown' href='#'><img src = 'images/forbank.png' height = 35 width = 35>Banking<span class='caret'></span></a>
<ul class='dropdown-menu'>
<li class = 'dropdown-submenu'><a tabindex='-1' href='#'><span class = 'glyphicon glyphicon-cog'> </span> Transaction</a>
<ul class='dropdown-menu' role = 'menu'>
<li><a tabindex='-1' href='#'> Withdrawal / Deposit </a></li>
<li><a tabindex='-1' href='#'> Fixed Deposit </a></li>
</ul>
</li>
<li role='separator' class='divider'></li>
<li><a href='#'><span class='glyphicon glyphicon-list-alt'> </span> Summaries </a></li>
<li><a href='#'><span class='glyphicon glyphicon-wrench'> </span> Settings </a></li>
</ul>
</li>
Run Code Online (Sandbox Code Playgroud) 与我之前的问题相关(引导程序上的下拉子菜单不起作用)我正在为li下拉列表的子菜单构建一个子菜单.所以这意味着它是嵌套的.在银行菜单下有交易下拉菜单,在交易下拉菜单下面有一个不同类型交易的菜单.顺便说一句,我已经成功创建了它,但是在悬停期间,"事务"模块的子菜单出现在事务菜单的前面,阻止了作为事务的父菜单.如何在悬停期间将其避开并将其置于交易菜单的右侧?无论如何,我已经完成了使用"下拉菜单下拉菜单右键",但它并没有改变程序的输出.我认为我的CSS有问题.
HTML代码:
<li class='dropdown'><a id = 'dLabel' class='dropdown-toggle active' data-toggle='dropdown' href='#'><img src = 'images/forbank.png' height = 35 width = 35>Banking<span class='caret'></span></a>
<ul class='dropdown-menu' role='menu' aria-labelledby='dropdownMenu'>
<li class = 'dropdown-submenu'>
<a tabindex = '-1' href='#'><span class = 'glyphicon glyphicon-cog'> </span> Transaction </a>
<ul class='dropdown-menu dropdown-menu-right' aria-labelledby='dLabel'>
<li><a tabindex='-1' href='#'> Withdrawal / Deposit </a></li>
<li><a tabindex='-1' href='#'> Fixed Deposit </a></li>
</ul>
</li>
<li role='separator' class='divider'></li>
<li><a href='#'><span class='glyphicon glyphicon-list-alt'> </span> Summaries </a></li>
<li><a href='#'><span class='glyphicon glyphicon-wrench'> </span> Settings </a></li>
</ul> …Run Code Online (Sandbox Code Playgroud) 如何获取MySQL中特定日期的最新数据?
我们假设我的数据库中记录了一列日期
dates | time | value
---------------------------------------------
2015-08-05 | 11:03:02 | 200
2015-08-05 | 23:04:22 | 2400
2015-08-07 | 8:00:22 | 500
2015-08-08 | 13:00:11 | 400
2015-08-08 | 13:23:11 | 200
2015-08-09 | 17:00:23 | 2200
2015-08-09 | 17:06:00 | 1290
2015-08-09 | 19:22:00 | 900
2015-08-13 | 01:01:22 | 1010
Run Code Online (Sandbox Code Playgroud)
我想获得特定日期的最新数据或交易,我期望的结果将是这样的
dates | time | value
---------------------------------------------
2015-08-05 | 23:04:22 | 2400
2015-08-07 | 8:00:22 | 500
2015-08-08 | 13:23:11 | 200
2015-08-09 | 19:22:00 | 900 …Run Code Online (Sandbox Code Playgroud) 让我们假设我的网页上我有一个<div>里面,如不同的标签<p>,<label>,<span>和任何,他们都具有独特的id属性.在javascript上,我怎样才能获得里面元素的id <div>?
例如:
<div id = "cont">
<p id = '0001'>
Prod One
</p>
<label id = '0002'>
Prod Two
</label>
<p id = '0003'>
Prod Three
</p>
<span id = '0004'>
Prod Four
</span>
</div>
<button onclick = 'getIDsInsideDiv()'>Get The ID of the elements inside the div </button>
Run Code Online (Sandbox Code Playgroud)
如果我要点击按钮,它将输出:
0001, 0002, 0003, 0004
Run Code Online (Sandbox Code Playgroud) html ×3
css ×2
javascript ×2
alignment ×1
distinct ×1
max ×1
mysql ×1
php ×1
properties ×1
sql ×1