<!--
当鼠标移入的时候,把div的style的display变成block
getElementByid()
js:把右边的东西,放在左边里
-->
<style>
#div1{
color: red;
font-size: 30px;
}
</style>
</head>
<body>
<label
onmouseout="document.getElementById('div1').style.display='none'"
onmousemover="document.getElementById('div1').style.display='block'" />
<input type="checkbox" />自动登录
</label>
<div id="div1"">不要在网吧</div>
</body>
<div id="div1" onmouseover="document.getElementById('div1').style.display.height='200px';
document.getElementById('div1').style.display.width='200px';
document.getElementById('div1').style.display.background='blue'"
>
</div>
<style>
/*全部的div*/
div{
width: 100px; height: 100px; background-color: red;
}
</style>
<div id="div1" onmouseover="document.getElementById('div1').style.height='200px';
document.getElementById('div1').style.width='200px';
document.getElementById('div1').style.background='blue'"
>
</div>
<body>
<div id="div1"
onmouseover="document.getElementById('div1').style.width='200px';
document.getElementById('div1').style.height='200px';
document.getElementById('div1').style.background='greenyellow'"
onmouseout="document.getElementById('div1').style.width='100px';
document.getElementById('div1'