发表于: 2017-02-18 23:25:05

1 1213


今天完成的事情:学习javascript中的变量的定义,函数的定义,循环语句。

明天计划的事情:继续学习JavaScript,做任务。

遇到的问题:看不懂JavaScript,通过查资料解决。我在css样式里面定义了border-radius属性,但是就是不显示圆角。

收获:通过今天的学习,对JavaScript有了更深入的了解。

.box div{

    width:50px;

    height:50px;

    margin:5px;

    background-color:#e78326;

    border-radius: 15px;

    float:left;

}

.clear{clear: both;}

.button input{

     width: 200px;

     height: 40px;

     background-color: #fff;

}

</style>

</head>

<body>

<div class="box">

    <div></div><div></div><div></div>

    <div class="clear"></div><div></div><div></div>

    <div class="clear"></div><div></div><div></div>

</div>

<div class="button">

<input type="button" name="开始" value="开始闪"/><br/>

<input type="button" name="结束" value="结束闪"/>

</div>

<script type="text/javascript">

var btn1=Document.getElementsById("button1")

var btn2=Document.getElementsById("button2")

bnt1.timer=


btn1.onclick=function(){

    

    for (var i=1; i < 4; i++) {

       

    };


}

btn2.onclick=function(){

    window.document

}

</script>





返回列表 返回列表
评论

    分享到