慕粉3761274
2016-08-24 12:04
//定义"改变宽高"的函数
function hewe()
{
var a=document.getElementById("con");
var b=document.getElementById("txt");
a.style.width="300";
b.style.height="100";
}
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("是否取消设置?");
if(mychar){
var a= document.getElementById("con");
var b= document.getElementById("txt");
a.style.width="600px";
b.style.height="400px";
}
}
取消设置,obj.style='null'
function setSize(){
document.getElementById("con").style.width = "1000px";
document.getElementById("con").style.height = "20px";
function setRest(){
var sign = confirm("确定取消设置?");
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;
}
JavaScript入门篇
740087 学习 · 9566 问题
相似问题
回答 1
回答 1
回答 1
回答 1
回答 3