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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

display

document.getElementById("content1").style.display="block"; 為十么會(huì)報(bào)錯(cuò)?

正在回答

3 回答

我知道錯(cuò)哪了,是因?yàn)槲野堰@句話放在了<head>標(biāo)簽里面,換到<body>中就沒(méi)問(wèn)題了,這是為什么呢?

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

這句話真的沒(méi)問(wèn)題,你應(yīng)該是別的地方出現(xiàn)問(wèn)題,你可以單獨(dú)試試如下代碼,我猜測(cè)你應(yīng)該是獲取的對(duì)象出現(xiàn)問(wèn)題,你單詞拼錯(cuò)之類

<!DOCTYPE?html>
<html>
<head>
<meta?charset="utf-8">
<meta?http-equiv="X-UA-Compatible"?content="IE=edge,chrome=1">
<title>Examples</title>
<meta?name="description"?content="">
<meta?name="keywords"?content="">
<link?href=""?rel="stylesheet">
<style?type="text/css">
	#content1{
		width:?100px;
		height:?50px;
		border:?1px?solid?black;
	}
</style>
</head>
<body>
	<div?id="content1"></div>
??<script?type="text/javascript">
??window.onload=function(){
??	document.getElementById("content1").style.display="block";
??}
??</script>??
</body>
</html>


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

http://www.cnblogs.com/zhuiyiyujinxiang/p/4705376.html

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

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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