返回我的作业 谢谢......登陆

我的作业 谢谢老师

王先生2019-03-01 18:09:26222

<!DOCTYPE html>

<html>

<head>

  <meta charset="UTF-8">

  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <meta http-equiv="X-UA-Compatible" content="ie=edge">

  <title>我的作业</title>

  <style media="screen">

    *{margin: 0px;height: 0px;}

    #CeShi{width: 200px;height: 200px;background-color: pink;margin: 50px 130px;}

    input{width: 80px;height: 30px;text-align: center;line-height: 30px;}

  </style>

</head>

<body>

  <script type="text/javascript">

    var box;

    window.onload=function(){

      box=document.getElementById('CeShi')

    }

    function Widths(){

      box.style.width="400px"

    }

    function Heights(){

      box.style.height="400px"

    }

    function Colors(){

      box.style.backgroundColor="red"

    }

    function Reductions(){

      box.style.width="200px"

      box.style.height="200px"

      box.style.backgroundColor="pink"

    }

    function Hides(){

      box.style.display="none"

    }

    function Displays(){

      box.style.display="block"

    }

  </script>

  <div id="CeShi"></div>

  <input type="button" name="" value="改变宽度"onclick="Widths()">

  <input type="button" name="" value="改变高度"onclick="Heights()">

  <input type="button" name="" value="改变颜色"onclick="Colors()">

  <input type="button" name="" value="还原"onclick="Reductions()">

  <input type="button" name="" value="隐藏"onclick="Hides()">

  <input type="button" name="" value="显示"onclick="Displays()">

</body>

</html>



老师讲的时候看着很简单,也都明白,到了自己练习,就出了各种问题,大多是因为粗心造成的,丢三落四,还是需要加强练习,养成好的书写习惯

最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送