9,18 考试

<div style=" border:100px solid #009; border-left:100px solid transparent; border-bottom:100px solid transparent;border-right:100px solid transparent; height:0px; width:0px">
</div>

<div style="width:20px; height:150px; background-color:#006; transform:rotate(45deg); margin-left:50px">
</div>
<div style="width:20px; height:150px; background-color:#006; transform:rotate(-45deg); margin-left:50px; margin-top:-58px">

</div>

3,简述以下代码实现的效果:

<style type="text/css">

*{ margin:0px auto; padding:0px; font-family:微软雅黑; font-size:14px;}

#content{margin:20px 0px 0px 300px;width:350px; height:100px; border:2px solid #60F; overflow:hidden; padding:10px 10px 10px 10px}

#waiceng{width:100px; height:50px;margin-left:320px; overflow:hidden; margin-top:-2px}

#sanjiao{width:50px; height:50px; border:2px solid #60F;transform:rotate(45deg); position:relative;top:-27px; border-left:0px; border-top:0px; background-color:white;}

</style>

 

<div id="content">

    CSS3中添加的transform是对元素进行变化操作的,包括位移,旋转,放大,变形等操作。这里我的代码均是采用标准的css3规范书写,大家使用的时候为了兼容可加上-webkit-、-o-、-ms-、-moz-、-khtml-等前缀以适应不同的浏览器。

</div>

<div id="waiceng">

         <div id="sanjiao"></div>

</div>

 

4.

<style type="text/css">
*{ margin:0px auto; padding:opx}
.jr{ height:40px; width:100px; float:left; vertical-align:central; line-height:40px; text-align:center; font-family:微软雅黑; color: #333; margin-top:2px}
.jr:hover{ width:100px;vertical-align:central; line-height:40px; text-align:center; background-color:#b3b6bb; border-top:1px solid #F39; margin-top:1px}


</style>
</head>

<body>
<div style="height:200px; width:200px"></div>
<div style="height:41px; width:600px; border:1px solid #e9e9e9 ">
<div class="jr">春节</div>
<div class="jr">元宵节</div>
<div class="jr">端午节</div>
<div class="jr">中秋节</div>
<div class="jr">国庆节</div>

</div>

5

var s="";

for(var i=-1; i<2;i=i+2)

  {

      for(var j=-1;j<2;j=j+2)

    {

     for(var k=-1;k<2;k=k+2)

      {

                  for(var l=-1; l<-2;l=l+2)

        {

          var  leftzhi=123+i*45+j*56+k*78+l*90;

                           if (leftzhi==100)

          {

                              s=("+i+")("+j+")("+k+")("+l+");

           }

 

        }

       }

    }

  }

alert(s);

posted @ 2016-09-18 15:19  夜雨声烦丶  阅读(177)  评论(0)    收藏  举报