layui dtree下拉树,怎么改变弹出方向,让下拉的弹出框向上弹出。
<label class="layui-form-label " style="width: 100px;">区域</label>
<div class="layui-input-block" style="width:100px;margin-left:100px;"">
<ul id="id" class="dtree" data-id="tag" style="width:{width}"}></ul>
</div>
layui.dtree.renderSelect({
elem: "#" + id,
skin: "blueStyle",
data: ResData,
selectTips: u_selecttips, //默认提示语
checkbar: u_checkbar, //是否开启复选框
checkbarType: all,
checkbarLoad: leaf,
selectInitVal: u_selectinitval, //设置默认值
done: function (res, $obj, first) {
}
});
网上方法下面这个样式更改 不适用
<style>
.layui-form-selectup dl {
top: auto;
bottom: 42px;
}
</style>