<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>古诗</title>
</head>
<body>
<style type="text/css">
div {
width: 500px;
height:350px;
padding: 15px;
border-radius: 15px;
box-shadow: 5px 5px 5px #888;
background-image: url(images/3.jpg);
background-size: 530px 380px;
background-repeat: no-repeat;
.text {
color:#00FF00;
text-indent: 3em;
line-height: 1.5em;
}
</style>
<div>
<h4 style="color:yellow;text-align: left; ;font-size:50px" onmouseover="change(this)"
onmouseout="old(this)"> 春 晓</h4>
<p> 作者:孟浩然</p>
<p><b> 春眠不觉晓, 处处闻啼鸟。 </b></p>
<p><b> 夜来风雨声, 花落知多少。 </b></p>
</div>
<script type="text/javascript">
function change(element) {
element.style.fontSize = '50px'
element.style.color = 'green'
}
function old(element) {
element.style.fontSize = '30px'
element.style.color = 'yellow'
}
</script>
</body>
</html>