js 指定位置增加按钮

var operate_div = document.getElementById('operateDiv');
var input_ly = document.createElement("input");
input_ly.type = "button";
input_ly.setAttribute("class","button");
input_ly.setAttribute("value","导出缺陷模板");
input_ly.addEventListener("click",exportEntityTemLinYang);
input_ly.setAttribute("left","12px");
input_ly.setAttribute("font-size","13px");
input_ly.setAttribute("height","22px");
operate_div.appendChild(input_ly);

posted @ 2020-05-11 10:45  adao  阅读(2533)  评论(0编辑  收藏  举报