通过hover简单控制盒子的显示和隐藏

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
.on
    {
        width: 500px;
        height:100px;
        background:#F80004;
    }
.dd
    {
        margin-left: 500px;
        width: 600px;
        height: 600px;
        background-color: #000DFF;
        display: none;
    }
.on:hover .dd {
	display:block
}
</style>
</head>

<body>
	<div class="on">
	   <div class="dd">箭头</div>
	</div>
</body>
</html>

你可能感兴趣的:(HTML笔记本)