我的作业 谢谢老师

Original 2019-03-01 18:09:26 222
abstract:<!DOCTYPE html><html><head>  <meta charset="UTF-8">  <meta name="viewport" content="width=device-width, initial-scale=1.0"> 

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



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

Correcting teacher:灭绝师太Correction time:2019-03-02 09:04:12
Teacher's summary:主要是眼高手低,多多练习熟练了就不会这样了,完成的不错!继续加油!

Release Notes

Popular Entries