• 飞机大战-css部分


    *{margin:0; padding:0;}
    html,body{100%; height:100%; overflow: hidden;}
    .main{
    	margin: auto;
    	height: 100%;
    	background: url(images/bg.jpg) repeat-y;
    	background-position-y: 0px;
    	 480px;
    	position: relative;
    }
    .options{
    	position: absolute;
    	list-style: none;
    	margin: auto;
    	left: 0; right: 0; top: 100px; 
    	 200px;
    	height: 300px;
    }
    .options li{
    	border-radius: 5px;
    	box-shadow: 0 0 2px 1px black;
    	float: left;
    	 200px;
    	height: 75px;
    	text-align: center;
    	line-height: 75px;
    	margin-bottom: 20px;
    	background: #f40;
    	color: white;
    	font: "微软雅黑";
    	font-size: 28px;
    	cursor: pointer;
    }
    .logo{
    	position: absolute;
    	left: 0; right: 0; top: 25%; 
    	margin: auto;
    	 428px; height: 104px;
    	background: url(images/logo.png) no-repeat;	
    }
    .loading{
    	position: absolute;
    	left: 0; right: 0; top: 60%;
    	margin: auto;
    	 192px; height: 41px;
    	background: url(images/loading1.png) no-repeat;
    }
    .my-warplain{
    	position: absolute;
    	 98px; height: 122px;
    	background: url(images/me.png) no-repeat;
    	/* cursor: none; */
    }
    .bullet{
    	position: absolute;
    	 7px; height: 18px;
    	background: url(images/bullet.png) no-repeat;
    }
    .bullet_die{
    	position: absolute;
    	 41px; height: 39px;
    	background: url(images/die1.png) no-repeat;
    	margin-left: -18px;
    }
    .enemy-small{
    	position: absolute;
    	z-index: 1;
    	 59px; height: 36px;
    	background: url(images/plane1.png) no-repeat;
    }
    .enemy-middle{
    	position: absolute;
    	 70px; height: 92px;
    	background: url(images/plane2.png) no-repeat;
    }
    .enemy-large{
    	position: absolute;
    	165px; height: 256px;
    	background: url(images/plane3.png) no-repeat;
    }
    
    
  • 相关阅读:
    面向对象之prototype,__proto__
    Screen对象
    location对象
    history对象
    JS计时器
    window对象
    Dom操作html详细
    终端 git log 修改样式
    null 和 NULL 判断
    textfield设置左边距
  • 原文地址:https://www.cnblogs.com/sansancn/p/10909973.html
Copyright © 2020-2023  润新知