<div class="mui-button-row">
<button id="orderadd" type="button" class="mui-btn mui-btn-primary" onclick="return false;">新增</button>
<button id="ordersave" type="button" class="mui-btn mui-btn-primary" onclick="return false;">保存</button>
<button id="ordercancel" type="button" class="mui-btn mui-btn-danger" onclick="return false;">取消</button>
</div>
运行中设置style.display后不在同一行显示:
if(recostatus=="00"){
document.getElementById("ordersave").style.display = "block";
document.getElementById("orderadd").style.display = "none";
}else{
document.getElementById("orderadd").style.display = "block";
document.getElementById("ordersave").style.display = "none";
}
1 个回复
DCloud_UNI_FXY
inline-block