博客列表 >3月15日作业

3月15日作业

王科的博客
王科的博客原创
2018年03月19日 19:42:24554浏览

第一次写PHP代码

实例

<meta charset="utf-8">
<style type="text/css">
 div {
  width: 600px;
  height:250px;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 5px 5px 5px #888;
  /*background-color: #efefef;*/
  background-image: url(images/9.jpg);
  background-size: 630px 280px;
  background-repeat: no-repeat;
 }
 .text {
  color:#255255255;
  text-indent: 2em;
  line-height: 1.5em;
 }
</style>
<div>
 <h3 style="color:brown;text-align: center;font-size:20px" onmouseover="change(this)"
onmouseout="old(this)">  静夜思</h3>
<p align="center">床前明月光,</p>
<p align="center">疑是地上霜。</p> 
<p align="center">举头望明月,</p>
<p align="center">低头思故乡。</p>
</div>
<script type="text/javascript">
 function change(element) {
  element.style.fontSize = '24px'
  element.style.color = 'green'
 }
 function old(element) {
  element.style.fontSize = '20px'
  element.style.color = 'brown'
 }
</script>

运行实例 »

点击 "运行实例" 按钮查看在线实例

2233.jpg

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