1.寬高帶有單位,改變寬高怎么寫(xiě),2.還有那個(gè)取消設(shè)置怎么寫(xiě),
//定義"改變寬高"的函數(shù)
?? function hewe()
?? {
?? ??? var a=document.getElementById("con");
?? ??? var b=document.getElementById("txt");
?? ??? a.style.width="300";
?? ??? b.style.height="100";
?? }
//定義"改變寬高"的函數(shù)
?? function hewe()
?? {
?? ??? var a=document.getElementById("con");
?? ??? var b=document.getElementById("txt");
?? ??? a.style.width="300";
?? ??? b.style.height="100";
?? }
2016-08-24
舉報(bào)
2016-08-24
function hewe()
?? {
?? ??? var a=document.getElementById("con");
?? ??? var b=document.getElementById("txt");
?? ??? a.style.width="300px";
?? ??? b.style.height="100px";
?? }
function changeCancelSet(){
? ? var mychar = confirm("是否取消設(shè)置?");
? ? if(mychar){
? ? ? ? var a= document.getElementById("con");
????????var b= document.getElementById("txt");
? ? ? ? a.style.width="600px";
? ? ? ? b.style.height="400px"; ? ? ? ? ? ?
? ? }
}
2016-08-25
取消設(shè)置,obj.style='null'
2016-08-24
function setSize(){
?????? document.getElementById("con").style.width = "1000px";
??????? document.getElementById("con").style.height = "20px";
function setRest(){
?var sign = confirm("確定取消設(shè)置?");
??????? if(sign) {
??????????? document.getElementById("con").style.color = color;
??????????? document.getElementById("con").style.width = width;
???????????document.getElementById("con").style.height = height;
???????????document.getElementById("txt").style.display = dis;
?}