最赞回答 / 墨色染流年
var selectH2=document.getElementById("con");var selectDiv=document.getElementById("txt");function rmChanges(){ var confirmRM=confirm("是否要取消设置?"); if(confirmRM==true){ selectH2.style=""; selectDiv.style=""; } }
2018-05-30
最新回答 / 阳火锅
你还没明白优先级的问题,你虽然设定了class... 但是style属性比class高。。所以你调用class并不会对原有的style进行覆盖。。按思路你必须先清除style。。
2018-05-30
已采纳回答 / hikochen
<html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javascript"> function openWindow(){ // 新窗口打开时弹出确认框,是否打开 var a = conf...
2018-05-29
最赞回答 / qq_精彩人生_3
<script type="text/javascript"> function openWindow(){ var mywin=confirm('要输入网址么') if(mywin==true) { var myw=prompt('请输入网址'); window.open(myw,'_blank','width=300,height=500') }} </script>
2018-05-29
最赞回答 / 小小瓦尼达
window.open('web','_blank','width=400px,height=500px,menubar=no,toolbar=no')这一句里边web是一个变量,不要加单引号引起来,否则引用不到 window.open(web,'_blank','width=400px,height=500px,menubar=no,toolbar=no')
2018-05-28
已采纳回答 / 雾式ren非
绝对路径:从根目录开始,到你要引用的文件。比如一个js文件:myjs.js在D盘的A文件夹里。你需要引用src="D:\A\myjs.js"。直接打开我的电脑,复制地址就行了。相对路径:相对于你正在编写的index.html的相对位置,src="../js/myjs.js"为index.html上一个文件夹的js文件夹下的myjs.js文件。../表示向上一个文件夹。
2018-05-28
最新回答 / 外星人a
<!DOCTYPE html><html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javascript"> function openWindow() { var open=confir...
2018-05-28