最赞回答 / weixin_慕移动7454092
<!DOCTYPE html><html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> <script type="text/javascript"> function openWindow() { var m...
2020-05-23
最赞回答 / 逆旅之行人
//定义"取消设置"的函数function cancelset(){ var cancle=confirm("确定还原?"); var cc=document.getElementById("txt"); var cd=document.getElementById("con"); if (cancle==true){ cc.removeAttribute("style"); cd.removeAttribute("style"); }else{ } }
2020-05-20
最赞回答 / PHP设计工程师
<!DOCTYPE html&t;&&t;hhtml&t; &;hehead&; &itltitle&new new document &le&/title<
&ttpmeta http-equiv="Content-Type" content="text/html; charset=gbk"/&rip
&="tscript type="text/javascript"&n o
function openWindow(){...
2020-05-18
最新回答 / 慕田峪146999
var txt = document.getElementById("txt"); txt.removeAttribute("style"); //取消设置的代码
2020-05-17
最新回答 / 奕帝传说_梦
我的实现是把txt原本样式保留,然后新建一个txt2来做其他的样式。在第一次改变时做一个If判断如果nowdom.className=="txt"就首先nowdom.className="txt2",然后再进行随便修改。最后如果要返回就直接nowdom.className="txt"就完事了
2020-05-11