<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.con{
width: 400px;
height: 250px;
background-image: url(images/8.jpg);
padding: 15px;
border-radius: 15px;
background-size: 430px 280px;
background-repeat: no-repeat;
}
.title{
text-align: center;
}
p{
text-align: center;
color:#000;
line-height: 1em;
font-size: 18px;
}
</style>
</head>
<body>
<div onmouseover="change(this)"onmouseout="old(this)" >
<h3 >静夜思</h3>
<p>床前明月光</p>
<p>疑是地上霜</p>
<p>举头望明月</p>
<p>低头思故乡</p>
</div>
<script type="text/javascript">
function change(element) {
element.style.boxShadow= '0 0 5px #888';
}
function old(element) {
element.style.boxShadow= '';
}
</script>
</body>
</html>