zoukankan      html  css  js  c++  java
  • div css 练习1

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>无标题文档</title>
    <style>
    	body{
    		margin: 0px;
    		padding:0px;
    		font-size:12px;
    		background:#252525;
    		overflow:hidden;						
    		text-align:center;		
    	}
    	
    	#container{
    		/*980px;
    		height:100px;
    		border: 1px solid red; */
    		text-align:center;
    	}
    	
    	#login{
    		background-image:url(image/lgonin_background.png);
    		960px;
    		height:404px;
    		text-align:center;
    		margin-left:auto;
    		margin-right: auto;	
    	}
    	
    	#form1 {
    		margin-top:100px; 
    		padding-top:100px;
    	}
    	
    	#input div{
    		margin-bottom:5px;		
    	}
    	
    	#input div input{
    		150px;
    		height:20;		
    		border:0px;
    	}	
    	
    </style>
    </head>
    
    <body>
    	<div id="container">
    		<div id="login">
    			<div id="form1">
    				<form action="http://www.baidu.com" method="post">
    					<div id="input">
    					<div>用户:<input type="text" name="username" /><br /> </div>
    					<div>密码:<input type="password" name="passwd" /><br /></div>
    					</div>
    					<div id="button">
    					<input type="submit" value="登录" />
    					<input type="button" value="注册" onclick="window.location.href='register.html'"  />
    					</div>
    				</form>
    			</div>
    		</div>
    	</div>
    </body>
    </html>
    

  • 相关阅读:
    线段树(segment tree)
    外排序
    【机器学习】如何成为当下合格的算法工程师
    Result Maps collection already contains value for
    负向零宽断言
    正则匹配中 ^ $ 和  的区别
    jq异步上传文件(转载)
    js触发按钮点击事件
    ./ ,../ , 以及/的区别
    eclipse遇到不会部署的情况
  • 原文地址:https://www.cnblogs.com/xj626852095/p/3648067.html
Copyright © 2011-2022 走看看