宽高和取消设置怎么没反应呢?
宽高和取消设置怎么没反应呢? var txt = document.getElementById("txt"); function s(){ txt.style.width="20px"; txt.style.height="200px"; } function r(){ var r = confirm("是否取消所有设置?"); if(r==true){ txt.removeAttribute('style'); }else{null}
宽高和取消设置怎么没反应呢? var txt = document.getElementById("txt"); function s(){ txt.style.width="20px"; txt.style.height="200px"; } function r(){ var r = confirm("是否取消所有设置?"); if(r==true){ txt.removeAttribute('style'); }else{null}
2015-05-28
举报