第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

求點更改外觀后怎么還是one。不應(yīng)該是two嗎

<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>className屬性</title>

<style>

? .one{background:yellow; color:red;}

? .two{background:pink; color:green;}

??

</style>

</head>

<body>

<p Id="ggg" class="one">再看看能不能成功</p>

? ?<form> <input type="button" value="更改外觀" onclick="bbb()"/>

</form>

<script type="text/javascript">

?var mg=document.getElementById("ggg");

? ? ? document.write(mg.className);

? ? ? function bbb(){mg.className="two";

? ? ? ? ??

? ? ? }

?

</script>

</body>

</html>


正在回答

4 回答

誰讓你 ? 家 ?的 ? ?I ? 大寫的。

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

慕粉1847419605 提問者

我改了下還是不行
2016-12-20 回復(fù) 有任何疑惑可以回復(fù)我~
#2

慕粉1847419605 提問者

非常感謝!
2016-12-20 回復(fù) 有任何疑惑可以回復(fù)我~
#3

慕粉1847419605 提問者

我吧題目都原封炒了一遍還是不行代碼給你你看下真的在下面
2016-12-20 回復(fù) 有任何疑惑可以回復(fù)我~


<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>className屬性</title>

<style>

input{font-size:10px;}

.one{width:200px; background-color:#FCC;}

.two{font-size:18px;color:#F00;}

</style>

</head>

<body>

<p id="con" class="one">再看看能不能成功</p>

? ?<form> <input type="button" value="更改外觀" onclick="modifyclass()"/>

</form>

<script type="text/javascript">

var mychar=document.getElementById('con');

document.write(mychar.className);

function modifyclass()

{mychar.className="two"}

</script>

</body>

</html>


0 回復(fù) 有任何疑惑可以回復(fù)我~

<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>className屬性</title>

<style>

? .one{background:yellow; color:red;}

? .two{background:pink; color:green;}

??

</style>

</head>

<body>

<p id="ggg" class="one">再看看能不能成功</p>

? ?<form> <input type="button" value="更改外觀" onclick="bbb()"/>

</form>

<script type="text/javascript">

?var mg=document.getElementByid("ggg");

? ? ? document.write(mg.className);

? ? ? function bbb(){mg.className="two";

? ? ? ? ??

? ? ? }

?

</script>

</body>

</html>


0 回復(fù) 有任何疑惑可以回復(fù)我~

求點更改外觀后怎么還是one。不應(yīng)該是two嗎

<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>className屬性</title>

<style>

? .one{background:yellow; color:red;}

? .two{background:pink; color:green;}

??

</style>

</head>

<body>

<p id="ggg" class="one">再看看能不能成功</p>

? ?<form> <input type="button" value="更改外觀" onclick="bbb()"/>

</form>

<script type="text/javascript">

?var mg=document.getElementById("ggg");

? ? ? document.write(mg.className);

? ? ? function bbb(){mg.className="two"; ?

? ? ? }

?

</script>

</body>

</html>

還是不行呀

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

求點更改外觀后怎么還是one。不應(yīng)該是two嗎

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號