1

1
1原创
2018年03月16日 00:39:40636浏览

<!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>

webwxgetmsgimg(1).jpg

webwxgetmsgimg.jpg

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议