代码如下,美高梅赌堵59599懒人图库&lt

2019-11-26 作者:首页   |   浏览(159)

点评:注册表单采纳html5+css3布局完结,效果极其不错,感兴趣的前端web设计者能够参见下哈,希望能够扶助到你

 

美高梅赌堵59599 1
 
本文出自 “html5+css3” 博客   

a {
    color:#1E7ACE;
    text-decoration:none;    
}

美高梅赌堵59599 2

代码如下:

</body>
</html>

5和CSS3制作登入页面完整步骤的文...

-->
</style>
</head>

为了更加好的知晓和维系表单的款式,大家将一步一步的拉长表单里面包车型客车要素。那最初开首的是创制表单表头和率先个输入框:

代码如下:

<!DOCTYPE html>
<html>
<head>

繁多个人为项目还没三个轻便和一流的登入页而闹心,几天前上班非常少职业做,在51cto里看了篇关于“使用HTML 5和CSS3制作登陆页面完整步骤”的稿子,作者就入手做了弹指间,现在将代码贴出来,因为个人以为ie6在不久的今后必定被放弃,所以那么些登入页面包车型地铁代码没有理会ie6里的情事。
代码如下:
1.      <!DOCTYPE HTML>
2.      <html>
3.      <head>
4.      <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
5.      <meta http-equiv="description" content="运用CSS3和CSS滤镜做的能够的记名分界面,无用到图片的喔!">
6.      <meta http-equiv="author" content="chenjinfei">
7.      <meta http-equiv="date" content="2012-2-6">
8.      <title>登录</title>
9.      <link rel="stylesheet" href="style/common/common.css">
10.   <style type="text/css">
11.   body {
12.       margin:0;
13.       padding:0;
14.       background-color:#E4E8EC;
15.   }
16.   .wrap {
17.       margin:150px auto;
18.       width:380px;
19.       overflow:hidden;
20.   }
21.   .loginForm {
22.       box-shadow: 0 0 2px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.2), 0 3px 0 #fff, 0 4px 0 rgba(0, 0, 0, 0.2), 0 6px 0 #fff, 0 7px 0 rgba(0, 0, 0, 0.2);
23.       position:absolute;
24.       z-index:0;
25.       background-color:#FFF;
26.       border-radius:4px;
27.       height:250px;
28.       width:380px;
29.       background: -webkit-gradient(linear, left top, left 24, from(#EEE), color-stop(4%, #FFF), to(#EEE));
30.       background: -moz-linear-gradient(top, #EEE, #FFF 1px, #EEE 24px);
31.       background: -o-linear-gradient(top, #EEEEEE, #FFFFFF 1px, #EEEEEE 24px);
32.   }
33.   .loginForm:before {
34.       content:'';
35.       position:absolute;
36.       z-index:-1;
37.       border:1px dashed #CCC;
38.      top:5px;
39.       bottom:5px;
40.       left:5px;
41.       right:5px;
42.       box-shadow: 0 0 0 1px #FFF;
43.   }
44.   .loginForm h1 {
45.       text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0px 2px 0 rgba(0, 0, 0, .5);
46.       text-transform:uppercase;
47.       text-align:center;
48.       color:#666;
49.       line-height:3em;
50.       margin:16px 0 20px 0;
51.       letter-spacing: 4px;
52.       font:normal 26px/1 Microsoft YaHei, sans-serif;
53.   }
54.   fieldset {
55.       border:none;
56.       padding:10px 10px 0;
57.   }
58.   fieldset input[type=text] {
59.       background:url(style/default/images/user.png) 4px 5px no-repeat;
60.   }
61.   fieldset input[type=password] {
62.       background:url(style/default/images/password.png) 4px 5px no-repeat;
63.   }
64.   fieldset input[type=text], fieldset input[type=password] {
65.       width:100%;
66.       line-height:2em;
67.       font-size:12px;
68.       height:24px;
69.       border:none;
70.       padding:3px 4px 3px 2.2em;
71.       width:300px;
72.   }
73.   fieldset input[type=submit] {
74.       text-align:center;
75.       padding:2px 20px;
76.       line-height:2em;
77.       border:1px solid #FF1500;
78.       border-radius:3px;
79.       background: -webkit-gradient(linear, left top, left 24, from(#FF6900), color-stop(0%, #FF9800), to(#FF6900));
80.       background: -moz-linear-gradient(top, #FF6900, #FF9800 0, #FF6900 24px);
81.       background:-o-linear-gradient(top, #FF6900, #FF9800 0, #FF6900 24px);
82.   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FF9800', endColorstr='#FF6900');
83.       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#FF9800', endColorstr='#FF6900')";
84.       height:30px;
85.       cursor:pointer;
86.       letter-spacing: 4px;
87.       margin-left:10px;
88.       color:#FFF;
89.       font-weight:bold;
90.   }
91.   fieldset input[type=submit]:hover {
92.       background: -webkit-gradient(linear, left top, left 24, from(#FF9800), color-stop(0%, #FF6900), to(#FF9800));
93.       background: -moz-linear-gradient(top, #FF9800, #FF6900 0, #FF9800 24px);
94.       background:-o-linear-gradient(top, #FF6900, #FF6900 0, #FF9800 24px);
95.   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FF6900', endColorstr='#FF9800');
96.       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#FF6900', endColorstr='#FF9800')";
97.   }
98.   .inputWrap {
99.       background: -webkit-gradient(linear, left top, left 24, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));
100.    background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 24px);
101.    background: -o-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 24px);
102.    border-radius:3px;
103.    border:1px solid #CCC;
104.    margin:10px 10px 0;
105.filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#EEEEEE', endColorstr='#FFFFFF');
106.    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#EEEEEE', endColorstr='#FFFFFF')";
107.}
108.fieldset input[type=checkbox] {
109.    margin-left:10px;
110.    vertical-align:middle;
111.}
112.fieldset a {
113.    color:blue;
114.    font-size:12px;
115.    margin:6px 0 0 10px;
116.    text-decoration:none;
117.}
118.fieldset a:hover {
119.    text-decoration:underline;
120.}
121.fieldset span {
122.    font-size:12px;
123.}
124.</style>
125.<!--为了让IE支持HTML5成分,做如下操作:-->
126.<!--[if IE]>
127.<script type="text/javascript">
128.document.createElement("section");
129.document.createElement("header");
130.document.createElement("footer");
131.</script>
132.<![endif]-->
133.</head>

}

type="email"品质来举个例子表达,在大部分浏览器中证实的字段为@(跋扈字符

css源码:

<div id=wrapper>
 <div id=lbl></div>
 <form>
  <fieldset id=account>
   <legend>个人消息</legend>
   <label for=username>账号:</label>
   <input id=username class=textbox type=text name=username required placeholder="请填入账号" />
   
   <label for=password1>密码:</label>
   <input id=password1 class=textbox type=password name=password1 required placeholder="请填入密码"/>
   
   <label for=password2>重复密码:</label>
   <input id=password2 class=textbox type=password name=password2 required placeholder="请重复密码"/>
   <label for=email>邮箱地址:</label>
   <input id=email class=textbox type=email name=email required placeholder="www.csdn.com" />

  1. 135.<body>
    136.<div class="wrap">
    137.  <form action="#" method="post">
    138.    <section class="loginForm">
    139.      <header>
    140.        <h1>登录</h1>
    141.      </header>
    142.      <div class="loginForm_content">
    143.        <fieldset>
    144.          <div class="inputWrap">
    145.            <input type="text" name="userName" placeholder="邮箱/会员帐号/手提式无线电话机号" autofocus required>
    146.          </div>
    147.          <div class="inputWrap">
    148.            <input type="password" name="password" placeholder="请输入密码" required>
    149.          </div>
    150.        </fieldset>
    151.        <fieldset>
    152.          <input type="checkbox" checked="checked">
    153.          <span>下一次机关登陆</span>
    154.        </fieldset>
    155.        <fieldset>
    156.          <input type="submit" value="登录">
    157.          <a href="#">忘记密码?</a> <a href="#">注册</a>
    158.        </fieldset>
    159.      </div>
    160.    </section>
    161.  </form>
    162.</div>
    163.</body>
    164.</html>
    本来啦,有图会直观不菲:

pre,p {
    color:#1E7ACE;
    margin:4px;
}
input, select,textarea {
    padding:1px;
    margin:2px;
    font-size:11px;
}
.buttom{
    padding:1px 10px;
    font-size:12px;
    border:1px #1E7ACE solid;
    background:#D0F0FF;
}
#formwrapper {
    width:450px;
    margin:15px auto;
    padding:20px;
    text-align:left;
    border:1px #1E7ACE solid;
}

美高梅赌堵59599 3

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/style.css" />
<script src=";
</head>
<body>
<div id=wrapper>
<div id=lbl></div>
<form>
<fieldset id=account>
<legend>个人消息</legend>
<label for=username>账号:</label>
<input id=username class=textbox type=text name=username required placeholder="请填入账号" />
<label for=password1>密码:</label>
<input id=password1 class=textbox type=password name=password1 required placeholder="请填入密码"/>
<label for=password2>重复密码:</label>
<input id=password2 class=textbox type=password name=password2 required placeholder="请重复密码"/>
<label for=email>邮箱地址:</label>
<input id=email class=textbox type=email name=email required placeholder="www.csdn.com" />
</fieldset>
<fieldset id=personal>
<legend>其余新闻</legend>
<label for=website>个人网站:</label>
<input id=website class=textbox type=url name=website required placeholder="" />
<label for=age>年龄:</label>
<input id=age class=textbox type=number name=age min=18 step=2 pattern="[0-9]{1,3}" placeholder="填写年龄">
<label for=salary>月薪:</label>
<input id=salary class=textbox type=range name=salary min=0 max=50000 step=500 pattern="[0-9]{2,}" placeholder="月薪俸几多" value=10000 onchange="showValue(this.value)" />
<span id=rangevalue>10000</span>
<script>
function showValue(value) {
document.getElementById("rangevalue").innerHTML=value;
}
</script>
<label for=description>描述:</label>
<textarea id=description name=description cols=30 rows=5 placeholder="这里是详细描述"></textarea>
</fieldset>
<fieldset id=confirm>
<input type=submit value="提交" />
<div class="clearfix"></div>
</fieldset>
</form>
</div>
</body>
</html>

 美高梅赌堵59599 4

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Form demo_懒人图库</title>
<style type="text/css">
<!--
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size:12px;
    color:#666666;
    background:#fff;
    text-align:center;

.contact_form input, .contact_form textarea { border:1px solid #aaa; box-shadow: 0px 0px 3px #ccc, 0 10px 15px #eee inset; border-radius:2px;}.contact_form input:focus, .contact_form textarea:focus { background: #fff; border:1px solid #555; box-shadow: 0 0 3px #aaa;}/* Button Style */button.submit { background-color: #68b12f; background: -webkit-gradient(linear, left top, left bottom, from(#68b12f), to(#50911e)); background: -webkit-linear-gradient(top, #68b12f, #50911e); background: -moz-linear-gradient(top, #68b12f, #50911e); background: -ms-linear-gradient(top, #68b12f, #50911e); background: -o-linear-gradient(top, #68b12f, #50911e); background: linear-gradient(top, #68b12f, #50911e); border: 1px solid #509111; border-bottom: 1px solid #5b992b; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; -ms-border-radius: 3px; -o-border-radius: 3px; box-shadow: inset 0 1px 0 0 #9fd574; -webkit-box-shadow: 0 1px 0 0 #9fd574 inset ; -moz-box-shadow: 0 1px 0 0 #9fd574 inset; -ms-box-shadow: 0 1px 0 0 #9fd574 inset; -o-box-shadow: 0 1px 0 0 #9fd574 inset; color: white; font-weight: bold; padding: 6px 20px; text-align: center; text-shadow: 0 -1px 0 #396715;}button.submit:hover { opacity:.85; cursor: pointer;}button.submit:active { border: 1px solid #20911e; box-shadow: 0 0 10px 5px #356b0b inset; -webkit-box-shadow:0 0 10px 5px #356b0b inset ; -moz-box-shadow: 0 0 10px 5px #356b0b inset; -ms-box-shadow: 0 0 10px 5px #356b0b inset; -o-box-shadow: 0 0 10px 5px #356b0b inset;}

body{
background:url(bg.jpg) repeat;
font-family:Arial Narrow, Arial, sans-serif;
margin:0;
padding:0;
}
header, section, footer{
display:block;
}
header{
width:100%;
background-color:rgb(0, 0, 0);
background-color:rgba(0, 0, 0, 0.9);
color:#ccc;
padding:15px 0;
letter-spacing:1px;
margin-bottom:20px;
position:relative;
}
header h1{
margin:0 50px;
text-shadow:2px 2px 2px #888;
float:left;
}
#backlinks{
float:right;
margin:-10px 20px;
line-height:25px;
font-weight:bold;
font-size:12px;
text-align:right;
}
#backlinks a{
color:#ccc;
text-decoration:none;
margin:3px 0 0;
display:block;
}
#backlinks a:hover{
color:#fff;
}
footer{
background-color:rgb(0, 0, 0);
background-color:rgba(0, 0, 0, 0.8);
height:25px;
width:100%;
line-height:25px;
position:relative;
font-family:Arial,Helvetica,sans-serif;
bottom:0;
left:0;
color:#888;
font-size:11px;
}
footer span{
padding-left:20px;
}
footer a{
color:#1FA2E1;
}
#wrapper{
width:770px;
margin:0 auto;
text-align:center;
}
#wrapper hgroup{
margin:20px 0;
text-shadow:1px 1px 1px #ccc;
}
#wrapper h1{
color:#146FA0;
font-size:42px;
margin:0;
}
#wrapper h2{
color:#71C1ED;
font-size:27px;
margin:0;
}
#lbl{
color:#777;
font-size:17px;
font-weight:bold;
text-shadow:1px 1px 0 #fff;
margin:10px 0;
}
*:focus{
outline:none;
}
label, input, textarea, fieldset{
display:block;
}
fieldset#account, fieldset#personal{
width:250px;
padding:0 50px 50px;
margin:10px;
float:left;
background:rgb(244,244,244);
background:rgba(244,244,244,0.7);
-webkit-border-radius: 25px;
-moz-border-radius: 25px;
border-radius: 25px;
border:3px double #999;
}
fieldset#confirm{
padding-top:10px;
clear:both;
border:none;
line-height:15px;
margin:10px 0;
}
fieldset#confirm label, fieldset#confirm input{
display:inline;
float:left;
margin:15px 5px 0;
}
legend{
font-size:20px;
font-weight:bold;
letter-spacing:5px;
color:#999;
margin-left:-20px;
text-align:left;
padding:0 10px;
text-shadow:1px 1px 0 #ccc;
}
label{
font-size:17px;
font-weight:bold;
margin:17px 0 7px;
text-align:left;
text-shadow:1px 1px 0 #fff;
}
textarea{
resize:both;
max-width:230px;
}
input.textbox, textarea{
padding:5px 10px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
border:1px solid #fff;
width:200px;
text-shadow:1px 1px 1px #777;
-moz-box-shadow: 0px 2px 0px #999;
-webkit-box-shadow: 0px 2px 0px #999;
box-shadow: 0px 2px 0px #999;
-webkit-transition: all 0.5s ease-in-out;
-moz-transition: all 0.5s ease-in-out;
transition: all 0.5s ease-in-out;
background:url(required.png) no-repeat 200px 5px #F0F0EF;
background:-webkit-gradient(linear, left top, left bottom, from(#E3E3E3), to(#FFFFFF)); /* Saf4+, Chrome */
background:-webkit-linear-gradient(top, #E3E3E3, #FFFFFF); /* Chrome 10+, Saf5.1+ */
background:-moz-linear-gradient(top, #E3E3E3, #FFFFFF); /* FF3.6+ */
background:-ms-linear-gradient(top, #E3E3E3, #FFFFFF); /* IE10 */
background:-o-linear-gradient(top, #E3E3E3, #FFFFFF); /* Opera 11.10+ */
}
input.textbox:focus, textarea:focus{
-webkit-transform: scale(1.1);
-moz-transform: scale(1.1);
transform: scale(1.1);
-moz-box-shadow: 5px 3px 1px #ccc;
-webkit-box-shadow: 5px 3px 1px #ccc;
box-shadow: 7px 7px 2px #ccc;
text-shadow:1px 1px 3px #777;
}
input.textbox:required{
background:url(required.png) no-repeat 200px 5px #F0F0EF;
background:url(required.png) no-repeat 200px 5px, -webkit-gradient(linear, left top, left bottom, from(#E3E3E3), to(#FFFFFF)); /* Saf4+, Chrome */
background:url(required.png) no-repeat 200px 5px, -webkit-linear-gradient(top, #E3E3E3, #FFFFFF); /* Chrome 10+, Saf5.1+ */
background:url(required.png) no-repeat 200px 5px, -moz-linear-gradient(top, #E3E3E3, #FFFFFF); /* FF3.6+ */
background:url(required.png) no-repeat 200px 5px, -ms-linear-gradient(top, #E3E3E3, #FFFFFF); /* IE10 */
background:url(required.png) no-repeat 200px 5px, -o-linear-gradient(top, #E3E3E3, #FFFFFF); /* Opera 11.10+ */
}
input.textbox:required:valid{
background:url(valid.png) no-repeat 200px 5px #F0F0EF;
background:url(valid.png) no-repeat 200px 5px, -webkit-gradient(linear, left top, left bottom, from(#E3E3E3), to(#FFFFFF)); /* Saf4+, Chrome */
background:url(valid.png) no-repeat 200px 5px, -webkit-linear-gradient(top, #E3E3E3, #FFFFFF); /* Chrome 10+, Saf5.1+ */
background:url(valid.png) no-repeat 200px 5px, -moz-linear-gradient(top, #E3E3E3, #FFFFFF); /* FF3.6+ */
background:url(valid.png) no-repeat 200px 5px, -ms-linear-gradient(top, #E3E3E3, #FFFFFF); /* IE10 */
background:url(valid.png) no-repeat 200px 5px, -o-linear-gradient(top, #E3E3E3, #FFFFFF); /* Opera 11.10+ */
}
input.textbox:focus:invalid, input.textbox:not(:required):invalid{
background:url(invalid.png) no-repeat 200px 5px #F0F0EF;
background:url(invalid.png) no-repeat 200px 5px, -webkit-gradient(linear, left top, left bottom, from(#E3E3E3), to(#FFFFFF)); /* Saf4+, Chrome */
background:url(invalid.png) no-repeat 200px 5px, -webkit-linear-gradient(top, #E3E3E3, #FFFFFF); /* Chrome 10+, Saf5.1+ */
background:url(invalid.png) no-repeat 200px 5px, -moz-linear-gradient(top, #E3E3E3, #FFFFFF); /* FF3.6+ */
background:url(invalid.png) no-repeat 200px 5px, -ms-linear-gradient(top, #E3E3E3, #FFFFFF); /* IE10 */
background:url(invalid.png) no-repeat 200px 5px, -o-linear-gradient(top, #E3E3E3, #FFFFFF); /* Opera 11.10+ */
}
input[type=submit] {
padding:10px;
margin:0 10px !important;
width:300px;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
input[type=range] {padding:0;}
}
#rangevalue{
display:block;
text-align:right;
margin-top:-25px;
}
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
color: #aaa;
font-style:italic;
text-shadow:1px 1px 0 #fff;
}
input:-moz-placeholder, textarea:-moz-placeholder {
color: #aaa;
font-style:italic;
text-shadow:1px 1px 0 #fff;
}
.clearfix{
clear:both;
}

[html] 
<!DOCTYPE html> 
<html> 
<head> 
 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
 
<link rel="stylesheet" href="css/style.css" /> 
<script src="; 
 
</head> 
<body> 
 
<div id=wrapper> 
    <div id=lbl></div> 
    <form> 
        <fieldset id=account> 
            <legend>个人音讯</legend> 
            <label for=username>账号:</label>  
            <input id=username class=textbox type=text name=username required placeholder="请填入账号" /> 
             
            <label for=password1>密码:</label>  
            <input id=password1 class=textbox type=password name=password1 required placeholder="请填入密码"/> 
             
            <label for=password2>重复密码:</label>  
            <input id=password2 class=textbox type=password name=password2 required placeholder="请重复密码"/> 
            <label for=email>邮箱地址:</label>  
            <input id=email class=textbox type=email name=email required placeholder="www.csdn.com" /> 
 
        </fieldset> 
        <fieldset id=personal> 
            <legend>其余音讯</legend> 
            <label for=website>个人网址:</label>  
            <input id=website class=textbox type=url name=website required placeholder="" /> 
 
            <label for=age>年龄:</label>  
            <input id=age class=textbox type=number name=age min=18 step=2 pattern="[0-9]{1,3}" placeholder="填写年龄"> 
 
            <label for=salary>月薪:</label>  
            <input id=salary class=textbox type=range name=salary min=0 max=50000 step=500 pattern="[0-9]{2,}" placeholder="每月薪水几多" value=10000 onchange="showValue(this.value)" /> 
            <span id=rangevalue>10000</span> 
            <script> 
            function showValue(value) { 
                document.getElementById("rangevalue").innerHTML=value; 
            } 
            </script> 
 
            <label for=description>描述:</label>  
            <textarea id=description name=description cols=30 rows=5 placeholder="这里是详细描述"></textarea> 
        </fieldset>    
        <fieldset id=confirm> 
            <input type=submit value="提交" /> 
            <div class="clearfix"></div> 
        </fieldset> 
    </form>    
</div>         
 
</body> 
</html> 

fieldset legend {
    color:#1E7ACE;
    font-weight:bold;
    padding:3px 20px 3px 20px;
    border:1px solid #1E7ACE;    
    background:#fff;
}

.contact_form label { width:150px; margin-top: 3px; display:inline-block; float:left; padding:3px;}.contact_form input { height:20px; width:220px; padding:5px 8px;}.contact_form textarea {padding:8px; width:300px;}.contact_form button {margin-left:156px;}

效益图如下:
美高梅赌堵59599 5
html源码:

[css] 
body{ 
    background:url(bg.jpg) repeat; 
    font-family:Arial Narrow, Arial, sans-serif; 
    margin:0; 
    padding:0; 

header, section, footer{ 
    display:block; 

header{ 
    width:100%; 
    background-color:rgb(0, 0, 0); 
    background-color:rgba(0, 0, 0, 0.9); 
    color:#ccc; 
    padding:15px 0; 
    letter-spacing:1px; 
    margin-bottom:20px; 
    position:relative; 

header h1{ 
    margin:0 50px; 
    text-shadow:2px 2px 2px #888; 
    float:left; 

#backlinks{ 
    float:right; 
    margin:-10px 20px; 
    line-height:25px; 
    font-weight:bold; 
    font-size:12px; 
    text-align:right; 

#backlinks a{ 
    color:#ccc; 
    text-decoration:none; 
    margin:3px 0 0; 
    display:block; 

#backlinks a:hover{ 
    color:#fff; 

footer{ 
    background-color:rgb(0, 0, 0); 
    background-color:rgba(0, 0, 0, 0.8); 
    height:25px; 
    width:100%; 
    line-height:25px; 
    position:relative; 
    font-family:Arial,Helvetica,sans-serif; 
    bottom:0; 
    left:0; 
    color:#888; 
    font-size:11px; 

footer span{ 
    padding-left:20px; 

footer a{ 
    color:#1FA2E1; 

 
#wrapper{ 
    width:770px; 
    margin:0 auto; 
    text-align:center; 

#wrapper hgroup{ 
    margin:20px 0; 
    text-shadow:1px 1px 1px #ccc; 

#wrapper h1{ 
    color:#146FA0; 
    font-size:42px; 
    margin:0; 

#wrapper h2{ 
    color:#71C1ED; 
    font-size:27px; 
    margin:0; 

#lbl{ 
    color:#777; 
    font-size:17px; 
    font-weight:bold; 
    text-shadow:1px 1px 0 #fff; 
    margin:10px 0; 

*:focus{ 
    outline:none; 

label, input, textarea, fieldset{ 
    display:block; 

fieldset#account, fieldset#personal{ 
    width:250px; 
    padding:0 50px 50px; 
    margin:10px; 
    float:left; 
    background:rgb(244,244,244); 
    background:rgba(244,244,244,0.7); 
    -webkit-border-radius: 25px; 
    -moz-border-radius: 25px; 
    border-radius: 25px; 
    border:3px double #999; 

fieldset#confirm{ 
    padding-top:10px; 
    clear:both; 
    border:none; 
    line-height:15px; 
    margin:10px 0; 

fieldset#confirm label, fieldset#confirm input{ 
    display:inline; 
    float:left; 
    margin:15px 5px 0; 

legend{ 
    font-size:20px; 
    font-weight:bold; 
    letter-spacing:5px; 
    color:#999; 
    margin-left:-20px; 
    text-align:left; 
    padding:0 10px; 
    text-shadow:1px 1px 0 #ccc; 

label{ 
    font-size:17px; 
    font-weight:bold; 
    margin:17px 0 7px; 
    text-align:left; 
    text-shadow:1px 1px 0 #fff; 

textarea{ 
    resize:both; 
    max-width:230px; 

input.textbox, textarea{ 
    padding:5px 10px; 
    -webkit-border-radius: 15px; 
    -moz-border-radius: 15px; 
    border-radius: 15px; 
    border:1px solid #fff; 
    width:200px; 
    text-shadow:1px 1px 1px #777; 
    -moz-box-shadow: 0px 2px 0px #999; 
    -webkit-box-shadow: 0px 2px 0px #999; 
    box-shadow: 0px 2px 0px #999; 
    -webkit-transition: all 0.5s ease-in-out; 
    -moz-transition: all 0.5s ease-in-out; 
    transition: all 0.5s ease-in-out; 
     
    background:url(required.png) no-repeat 200px 5px #F0F0EF; 
    background:-webkit-gradient(linear, left top, left bottom, from(#E3E3E3), to(#FFFFFF)); /* Saf4+, Chrome */ 
    background:-webkit-linear-gradient(top, #E3E3E3, #FFFFFF); /* Chrome 10+, Saf5.1+ */ 
    background:-moz-linear-gradient(top, #E3E3E3, #FFFFFF); /* FF3.6+ */ 
    background:-ms-linear-gradient(top, #E3E3E3, #FFFFFF); /* IE10 */ 
    background:-o-linear-gradient(top, #E3E3E3, #FFFFFF); /* Opera 11.10+ */ 

input.textbox:focus, textarea:focus{ 
    -webkit-transform: scale(1.1); 
    -moz-transform: scale(1.1); 
    transform: scale(1.1); 
    -moz-box-shadow: 5px 3px 1px #ccc; 
    -webkit-box-shadow: 5px 3px 1px #ccc; 
    box-shadow: 7px 7px 2px #ccc; 
    text-shadow:1px 1px 3px #777; 

input.textbox:required{ 
    background:url(required.png) no-repeat 200px 5px #F0F0EF; 
    background:url(required.png) no-repeat 200px 5px, -webkit-gradient(linear, left top, left bottom, from(#E3E3E3), to(#FFFFFF)); /* Saf4+, Chrome */ 
    background:url(required.png) no-repeat 200px 5px, -webkit-linear-gradient(top, #E3E3E3, #FFFFFF); /* Chrome 10+, Saf5.1+ */ 
    background:url(required.png) no-repeat 200px 5px, -moz-linear-gradient(top, #E3E3E3, #FFFFFF); /* FF3.6+ */ 
    background:url(required.png) no-repeat 200px 5px, -ms-linear-gradient(top, #E3E3E3, #FFFFFF); /* IE10 */ 
    background:url(required.png) no-repeat 200px 5px, -o-linear-gradient(top, #E3E3E3, #FFFFFF); /* Opera 11.10+ */ 

input.textbox:required:valid{ 
    background:url(valid.png) no-repeat 200px 5px #F0F0EF; 
    background:url(valid.png) no-repeat 200px 5px, -webkit-gradient(linear, left top, left bottom, from(#E3E3E3), to(#FFFFFF)); /* Saf4+, Chrome */ 
    background:url(valid.png) no-repeat 200px 5px, -webkit-linear-gradient(top, #E3E3E3, #FFFFFF); /* Chrome 10+, Saf5.1+ */ 
    background:url(valid.png) no-repeat 200px 5px, -moz-linear-gradient(top, #E3E3E3, #FFFFFF); /* FF3.6+ */ 
    background:url(valid.png) no-repeat 200px 5px, -ms-linear-gradient(top, #E3E3E3, #FFFFFF); /* IE10 */ 
    background:url(valid.png) no-repeat 200px 5px, -o-linear-gradient(top, #E3E3E3, #FFFFFF); /* Opera 11.10+ */ 
}        
input.textbox:focus:invalid, input.textbox:not(:required):invalid{ 
    background:url(invalid.png) no-repeat 200px 5px #F0F0EF; 
    background:url(invalid.png) no-repeat 200px 5px, -webkit-gradient(linear, left top, left bottom, from(#E3E3E3), to(#FFFFFF)); /* Saf4+, Chrome */ 
    background:url(invalid.png) no-repeat 200px 5px, -webkit-linear-gradient(top, #E3E3E3, #FFFFFF); /* Chrome 10+, Saf5.1+ */ 
    background:url(invalid.png) no-repeat 200px 5px, -moz-linear-gradient(top, #E3E3E3, #FFFFFF); /* FF3.6+ */ 
    background:url(invalid.png) no-repeat 200px 5px, -ms-linear-gradient(top, #E3E3E3, #FFFFFF); /* IE10 */ 
    background:url(invalid.png) no-repeat 200px 5px, -o-linear-gradient(top, #E3E3E3, #FFFFFF); /* Opera 11.10+ */ 

input[type=submit] { 
    padding:10px; 
    margin:0 10px !important; 
    width:300px; 

@media screen and (-webkit-min-device-pixel-ratio:0) {  
    input[type=range] {padding:0;} 

#rangevalue{ 
    display:block; 
    text-align:right; 
    margin-top:-25px; 

input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { 
    color: #aaa; 
    font-style:italic; 
    text-shadow:1px 1px 0 #fff; 

input:-moz-placeholder, textarea:-moz-placeholder { 
    color: #aaa; 
    font-style:italic; 
    text-shadow:1px 1px 0 #fff; 

 
.clearfix{ 
    clear:both; 

* {
    margin:0;
    padding:0;
}

美高梅赌堵59599 6

  </fieldset>
  <fieldset id=personal>
   <legend>别的音讯</legend>
   <label for=website>个人网站:</label>
   <input id=website class=textbox type=url name=website required placeholder="" />

<h3>已注册顾客登入</h3>
    <form action="" method="post" name="apLogin" id="apLogin">
    <fieldset>
        <legend>客户登陆</legend>
        <div>
            <label for="Name">用户名</label>
            <input type="text" name="Name" id="Name" size="18" maxlength="30" /><br />
        </div>
        <div>
            <label for="password">密码</label>
            <input type="password" name="password" id="password" size="18" maxlength="15" /><br />
        </div>
        <div class="cookiechk">
            <label><input type="checkbox" name="CookieYN" id="CookieYN" value="1" /> <a href="#" title="选用是或不是记录你的音讯">记住作者</a></label>
            <input name="login791" type="submit" class="buttom" value="登录" />
        </div>    
        <div class="forgotpass"><a href="#">您忘记密码?</a></div>    
    </fieldset>
    </form><br />
    <h3>未注册创设帐户</h3>
    <form action="" method="post" name="apForm" id="apForm">
    <fieldset>
        <legend>客商注册</legend>
        <p><strong>您的电子邮箱不会被揭橥出来,可是必得填写.</strong> 在您注册在此以前请先认真阅读服务条目.</p>
        <div>
        <label for="Name">用户名</label>
        <input type="text" name="Name" id="Name" value="" size="20" maxlength="30" />
        *(最多30个字符)<br />    
    </div>
        <div>
        <label for="Email">电子邮箱</label>
        <input type="text" name="Email" id="Email" value="" size="20" maxlength="150" /> *<br />    
    </div>    
        <div>
        <label for="password">密码</label>
        <input type="password" name="password" id="password" size="18" maxlength="15" />
        *(最多15个字符)<br />
    </div>
        <div>
        <label for="confirm_password">重复密码</label>
        <input type="password" name="confirm_password" id="confirm_password" size="18" maxlength="15" />
        *<br />

因为大家的表单结构是用列表,所以定义列表来说大话。

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

.enter{ text-align:center;}
.clear {
    clear:both;
}

近来,为了美化提醒语的提醒框,大家必要三个小的三角形,来指导迷津客户。小三角形能够用图片来展现,但在此咱们用css来编排显示,因为这些三角在页面中不是二个超级重大的遵守,只是三个视觉格局。大家得以应用unicode几何图像,再结合::before选料符来实现最后效果。

   <label for=age>年龄:</label>
   <input id=age class=textbox type=number name=age min=18 step=2 pattern="[0-9]{1,3}" placeholder="填写年龄">

</body>
</html>

美高梅赌堵59599 7

body{
 background:url(bg.jpg) repeat;
 font-family:Arial Narrow, Arial, sans-serif;
 margin:0;
 padding:0;
}
header, section, footer{
 display:block;
}
header{
 width:100%;
 background-color:rgb(0, 0, 0);
 background-color:rgba(0, 0, 0, 0.9);
 color:#ccc;
 padding:15px 0;
 letter-spacing:1px;
 margin-bottom:20px;
 position:relative;
}
header h1{
 margin:0 50px;
 text-shadow:2px 2px 2px #888;
 float:left;
}
#backlinks{
 float:right;
 margin:-10px 20px;
 line-height:25px;
 font-weight:bold;
 font-size:12px;
 text-align:right;
}
#backlinks a{
 color:#ccc;
 text-decoration:none;
 margin:3px 0 0;
 display:block;
}
#backlinks a:hover{
 color:#fff;
}
footer{
 background-color:rgb(0, 0, 0);
 background-color:rgba(0, 0, 0, 0.8);
 height:25px;
 width:100%;
 line-height:25px;
 position:relative;
 font-family:Arial,Helvetica,sans-serif;
 bottom:0;
 left:0;
 color:#888;
 font-size:11px;
}
footer span{
 padding-left:20px;
}
footer a{
 color:#1FA2E1;
}

fieldset {
    padding:10px;
    margin-top:5px;
    border:1px solid #1E7ACE;
    background:#fff;
}

5、表单输入样式

</head>
<body>

a:hover {
    color:#000;
    text-decoration:underline;
}
h3 {
    font-size:14px;
    font-weight:bold;
}

1、格式化 :focus 的样式

<link rel="stylesheet" href="css/style.css" />
<script src=";

    </div>
        <div>
        <label for="AgreeToTerms">同意服务条目款项</label>
            <input type="checkbox" name="AgreeToTerms" id="AgreeToTerms" value="1" />
            <a href="#" title="您是或不是允许服务条目">先看看条约?</a> *    </div>        
        <div class="enter">
        <input name="create791" type="submit" class="buttom" value="提交" />
        <input name="Submit" type="reset" class="buttom" value="重置" />
    </div>

表单的输入成分是表单的主导,用来搜罗音讯。

#wrapper{
 width:770px;
 margin:0 auto;
 text-align:center;
}
#wrapper hgroup{
 margin:20px 0;
 text-shadow:1px 1px 1px #ccc;
}
#wrapper h1{
 color:#146FA0;
 font-size:42px;
 margin:0;
}
#wrapper h2{
 color:#71C1ED;
 font-size:27px;
 margin:0;
}
#lbl{
 color:#777;
 font-size:17px;
 font-weight:bold;
 text-shadow:1px 1px 0 #fff;
 margin:10px 0;
}
*:focus{
 outline:none;
}
label, input, textarea, fieldset{
 display:block;
}
fieldset#account, fieldset#personal{
 width:250px;
 padding:0 50px 50px;
 margin:10px;
 float:left;
 background:rgb(244,244,244);
 background:rgba(244,244,244,0.7);
 -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
 border:3px double #999;
}
fieldset#confirm{
 padding-top:10px;
 clear:both;
 border:none;
 line-height:15px;
 margin:10px 0;
}
fieldset#confirm label, fieldset#confirm input{
 display:inline;
 float:left;
 margin:15px 5px 0;
}
legend{
 font-size:20px;
 font-weight:bold;
 letter-spacing:5px;
 color:#999;
 margin-left:-20px;
 text-align:left;
 padding:0 10px;
 text-shadow:1px 1px 0 #ccc;
}
label{
 font-size:17px;
 font-weight:bold;
 margin:17px 0 7px;
 text-align:left;
 text-shadow:1px 1px 0 #fff;
}
textarea{
 resize:both;
 max-width:230px;
}
input.textbox, textarea{
 padding:5px 10px;
 -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
 border:1px solid #fff;
 width:200px;
 text-shadow:1px 1px 1px #777;
 -moz-box-shadow: 0px 2px 0px #999;
 -webkit-box-shadow: 0px 2px 0px #999;
    box-shadow: 0px 2px 0px #999;
 -webkit-transition: all 0.5s ease-in-out;
 -moz-transition: all 0.5s ease-in-out;
 transition: all 0.5s ease-in-out;
 
 background:url(required.png) no-repeat 200px 5px #F0F0EF;
 background:-webkit-gradient(linear, left top, left bottom, from(#E3E3E3), to(#FFFFFF)); /* Saf4+, Chrome */
 background:-webkit-linear-gradient(top, #E3E3E3, #FFFFFF); /* Chrome 10+, Saf5.1+ */
 background:-moz-linear-gradient(top, #E3E3E3, #FFFFFF); /* FF3.6+ */
 background:-ms-linear-gradient(top, #E3E3E3, #FFFFFF); /* IE10 */
 background:-o-linear-gradient(top, #E3E3E3, #FFFFFF); /* Opera 11.10+ */
}
input.textbox:focus, textarea:focus{
 -webkit-transform: scale(1.1);
 -moz-transform: scale(1.1);
 transform: scale(1.1);
 -moz-box-shadow: 5px 3px 1px #ccc;
 -webkit-box-shadow: 5px 3px 1px #ccc;
    box-shadow: 7px 7px 2px #ccc;
 text-shadow:1px 1px 3px #777;
}
input.textbox:required{
 background:url(required.png) no-repeat 200px 5px #F0F0EF;
 background:url(required.png) no-repeat 200px 5px, -webkit-gradient(linear, left top, left bottom, from(#E3E3E3), to(#FFFFFF)); /* Saf4+, Chrome */
 background:url(required.png) no-repeat 200px 5px, -webkit-linear-gradient(top, #E3E3E3, #FFFFFF); /* Chrome 10+, Saf5.1+ */
 background:url(required.png) no-repeat 200px 5px, -moz-linear-gradient(top, #E3E3E3, #FFFFFF); /* FF3.6+ */
 background:url(required.png) no-repeat 200px 5px, -ms-linear-gradient(top, #E3E3E3, #FFFFFF); /* IE10 */
 background:url(required.png) no-repeat 200px 5px, -o-linear-gradient(top, #E3E3E3, #FFFFFF); /* Opera 11.10+ */
}
input.textbox:required:valid{
 background:url(valid.png) no-repeat 200px 5px #F0F0EF;
 background:url(valid.png) no-repeat 200px 5px, -webkit-gradient(linear, left top, left bottom, from(#E3E3E3), to(#FFFFFF)); /* Saf4+, Chrome */
 background:url(valid.png) no-repeat 200px 5px, -webkit-linear-gradient(top, #E3E3E3, #FFFFFF); /* Chrome 10+, Saf5.1+ */
 background:url(valid.png) no-repeat 200px 5px, -moz-linear-gradient(top, #E3E3E3, #FFFFFF); /* FF3.6+ */
 background:url(valid.png) no-repeat 200px 5px, -ms-linear-gradient(top, #E3E3E3, #FFFFFF); /* IE10 */
 background:url(valid.png) no-repeat 200px 5px, -o-linear-gradient(top, #E3E3E3, #FFFFFF); /* Opera 11.10+ */
}  
input.textbox:focus:invalid, input.textbox:not(:required):invalid{
 background:url(invalid.png) no-repeat 200px 5px #F0F0EF;
 background:url(invalid.png) no-repeat 200px 5px, -webkit-gradient(linear, left top, left bottom, from(#E3E3E3), to(#FFFFFF)); /* Saf4+, Chrome */
 background:url(invalid.png) no-repeat 200px 5px, -webkit-linear-gradient(top, #E3E3E3, #FFFFFF); /* Chrome 10+, Saf5.1+ */
 background:url(invalid.png) no-repeat 200px 5px, -moz-linear-gradient(top, #E3E3E3, #FFFFFF); /* FF3.6+ */
 background:url(invalid.png) no-repeat 200px 5px, -ms-linear-gradient(top, #E3E3E3, #FFFFFF); /* IE10 */
 background:url(invalid.png) no-repeat 200px 5px, -o-linear-gradient(top, #E3E3E3, #FFFFFF); /* Opera 11.10+ */
}
input[type=submit] {
 padding:10px;
 margin:0 10px !important;
 width:300px;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
 input[type=range] {padding:0;}
}
#rangevalue{
 display:block;
 text-align:right;
 margin-top:-25px;
}
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
 color: #aaa;
 font-style:italic;
 text-shadow:1px 1px 0 #fff;
}
input:-moz-placeholder, textarea:-moz-placeholder {
 color: #aaa;
 font-style:italic;
 text-shadow:1px 1px 0 #fff;
}

<body>
<div id="formwrapper">

在支持transition的浏览器中,扩张CSS缓慢过渡效果。

   <label for=salary>月薪:</label>
   <input id=salary class=textbox type=range name=salary min=0 max=50000 step=500 pattern="[0-9]{2,}" placeholder="月工资几多" value=10000 onchange="showValue(this.value)" />
   <span id=rangevalue>10000</span>
   <script>
   function showValue(value) {
    document.getElementById("rangevalue").innerHTML=value;
   }
   </script>

        <p><strong>* 在提交您的挂号新闻时, 我们以为你曾经同意了大家的服务条目.<br />
        * 那个条约大概在未经您同意的时候实行修改.</strong></p>    
    </fieldset>
    </form>
</div>

pattern属性

   <label for=description>描述:</label>
   <textarea id=description name=description cols=30 rows=5 placeholder="这里是详细描述"></textarea>
  </fieldset> 
  <fieldset id=confirm>
   <input type=submit value="提交" />
   <div class="clearfix"></div>
  </fieldset>
 </form> 
</div>  

fieldset label {
    float:left;
    width:120px;
    text-align:right;
    padding:4px;
    margin:1px;
}

因为我们设置了typerequired的性质,所以我们的css样式和评释准绳已经被应用到浏览器,会活动依据特有的规规矩矩自行验证。

html源码:

fieldset div {
    clear:left;
    margin-bottom:2px;
}

除此以外,大家扩展了顶上部分和后面部分的边框线,使用:first-child:last-child慎选符来完毕。那标准就充实了我们表单的美貌,可是古老的浏览器不支持那七个选取符,不过那不是重视,大家要向前看,只要最风靡的现世浏览器扶助就能够。

html源码: [html] !DOCTYPE html html head meta http-equiv=Content-Type content=text/html; charset=utf-8 / link rel=stylesheet href=css/style.css / script src=...

结论

css源码:

我们意气风发道来增添一下互为效果,当鼠标点中输入框时,扩充输入框的长短。

成效图如下:

我们间接盼望的东西,终于要来了,就是HTML5表单管理工科具。在HTML5中增多required到input/textarea后,会报告浏览器在交付表单前,表单值必得是存在的;因而,若无填入字段,表单将不会被交给。今后大家在急需表明的输入框里面加上required

.clearfix{
 clear:both;
}

翻开预览

率先,大家得为大家的表单策划一下该有何成效,用什么样花样表现。在这里个示例中,大家就炮制三个比较简单的留言表单。要求的效用如下:

第十一步:改正type属性

表单提示

实际你能够改善部分浏览器的弹出框的风格:

第六步:增加占位符属性

本文由美高梅赌堵59599发布于首页,转载请注明出处:代码如下,美高梅赌堵59599懒人图库&lt

关键词: