zoukankan      html  css  js  c++  java
  • 飞机大战-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;
    }
    
    
  • 相关阅读:
    仿jquery 选择器功能
    多个div拖拽功能
    js 模拟jquery onready 事件
    随着鼠标移动的图片百叶窗效果
    计算体重引发的思考
    js 模拟事件
    表单验证功能(利用冒泡功能)
    视频播放滚动条(最终完善版)
    仿制视频播放滚动条效果(加左右控制按钮)
    无极树(待整理)
  • 原文地址:https://www.cnblogs.com/sansancn/p/10909973.html
Copyright © 2011-2022 走看看