我想给他们留下余量
代码如下所示,
<div class="dd" id="menu_list_drag">
<?php echo $li; ?>
</div>
其中$li
如下所示,
foreach ($p1 as $p) {
$inner_li = "";
$p2 = array_filter($menu, function($a)use($p) {
return $a['parent_id'] == $p['id'];
});
if ($p2) {
$inner_li = $this->generate_li($menu, $p['id']);
}
$li .= "<li class='dd-item' data-id='" . $p['id'] .
"' id='menu-list'><div menu-id='" . $p['id'] . "' id='drag' class='dd-handle'>" . $p['title'] .
"<div style='float:right; margin-bottom:10px' class='dd-nodrag'>"
. "<a class='btn-group btn-group-xs edit_menu' data-toggle='tooltip' id='" . $p['id'] .
"' data-original-title='Edit' onclick='edit_menu($(this))' title='Edit Menu'>"
. "<i class='btn btn-default edit_area fa fa-pencil'></i></a>"
. "<a class='btn-group btn-group-xs delete_menu' id='" . $p['id'] .
"' data-toggle='tooltip' data-original-title='Delete' delete_type='delete_single' onclick='delete_menu($(this))' title='Deactivate Menu'>"
. "<i class='btn btn-default fa fa-trash-o'></i></a></div></div>" . $inner_li . "</li>";
}
$ol = "<ol class='dd-list'>" . $li . "</ol>";
数据很好,但我无法给这个dd类菜单提供保证金 请帮帮我谢谢......
答案 0 :(得分:0)
我用过这个
.dd-handle{height:35px;}
它对我有用...... !!