瓦特卖轮鸭
2018-12-04 14:20
function cancel() {
var change=confirm("是否取消设置?");
if(change)
{
txt.style.color="black";
txt.style.width="600px";
txt.style.height="400px";
} }//定义"取消设置"的函数
相应按钮内添加 onclick="cancel()"
function resetting()
{
var v5;
v5=confirm("否取消设置?");
if(v5)
{
v5.style.color="blue";
v5.style.backgroundColor="red";
v5.style.width="400px";
v5.style.height="600px";
v5.style.display="none";
v5.style.display="block";
}
}
JavaScript入门篇
741025 学习 · 9681 问题
相似问题
回答 3
回答 1
回答 1
回答 2
回答 1