最新回答 / BlueCat
<!DOCTYPE HTML><html><head> <meta http-equiv="Content-Type" Content="text/html; charset=utf-8" /> <title>javascript</title> <style type="text/css"> body{font-size:12px;} #txt{ height:400px; widt...
2019-03-11
最新回答 / 慕后端7433711
function heihei(){ var k,kk,gg; //k=prompt("请输入要更改的属性,如:color"); kk=document.getElementById("con"); gg=prompt("请输入更改后的新样式"); //kk.style.k="gg"; kk.style.color=gg;自己理解
2019-03-10
已采纳回答 / 无味萝卜
window.open('http://www.imooc.com', '_blank', 'width=600, height=400, top=100, left=0')你的window.open()中第三个样式设置参数没有用引号括起来。left=0后不用加","。
2019-03-09
最新回答 / 无味萝卜
style标签里选择class需要在className前面加”.“,就像楼上写的.change { color:red; background-color:green;}
2019-03-08
已采纳回答 / 啥哈
var mynum;是声明一个变量mychar="javascript"是对这个变量赋值,javascript不是数字要加双引号var mynum=8是即声明又赋值,8是数字不要加双引号
2019-03-06