 
		qq_游落千殇_0
2017-07-01 10:42
两个DIV的颜色都要改变吗
 
				//定义"取消设置"的函数
function cancel()
{
var tcancel=confirm("是否要取消设置?");
if(tcancel==true)
{
show.style="null";
}
}
 
				var show=document.getElementById("txt");
//定义"改变颜色"的函数
function tcolor(){
show.style.color="white";
show.style.backgroundColor="grey";
}
 
				取消设置该怎么弄
 
				id为txt的div块的颜色
JavaScript入门篇
741613 学习 · 9869 问题
相似问题