比较好看的表单的样式实例-美观的表单小程序-小程序表单制作
1.!DOCTYPEhtmlhtmllang="en"headmetacharset="UTF-8"title/titlelinkrel="stylesheet"href="/static/css/style.css"style.smart-green{margin-left:auto;margin-right:auto;max-width:500px;background:#F8F8F8;padding:30px30px20px30px;font:12pxArial,Helvetica,sans-serif;color:#666;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;}
2..smart-greenh1{font:24px"TrebuchetMS",Arial,Helvetica,sans-serif;padding:20px0px20px40px;display:block;margin:-30px-30px10px-30px;color:#FFF;background:#9DC45F;text-shadow:1px1px1px#949494;border-radius:5px5px0px0px;-webkit-border-radius:5px5px0px0px;-moz-border-radius:5px5px0px0px;border-bottom:1pxsolid#89AF4C;}
3..smart-greenh1span{display:block;font-size:11px;color:#FFF;}
4..smart-greenlabel{display:block;margin:0px0px5px;}
5..smart-greenlabelspan{float:left;margin-top:10px;color:#5E5E5E;}
6..smart-greeninput[type="text"],.smart-greeninput[type="email"],.smart-greentextarea,.smart-greenselect{color:#555;height:30px;line-height:15px;width:100%;padding:0px0px0px10px;margin-top:2px;border:1pxsolid#E5E5E5;background:#FBFBFB;outline:0;-webkit-box-shadow:inset1px1px2pxrgba(238,238,238,0.2);box-shadow:inset1px1px2pxrgba(238,238,238,0.2);font:normal14px/14pxArial,Helvetica,sans-serif;}
7..smart-greentextarea{height:100px;padding-top:10px;}
8..smart-green.button{background-color:#9DC45F;border-radius:5px;-webkit-border-radius:5px;-moz-border-border-radius:5px;border:none;padding:10px25px10px25px;color:#FFF;text-shadow:1px1px1px#949494;}
9..smart-green.button:hover{background-color:#80A24A;}
10..error-msg{color:red;margin-top:10px;}.success-msg{color:#80A24A;margin-top:10px;margin-bottom:10px;}/style/headbodyformaction="/form/"method="post"class="smart-green"h1留言信息span请留下你的信息./span/h1labelspan姓名:/spaninputid="name"type="text"name="name"class="error"placeholder="请输入您的姓名"/divclass="error-msg"/div/label
11.labelspan邮箱:/spaninputid="email"type="email"value=""name="email"placeholder="请输入邮箱地址"/divclass="error-msg"/div/label
12.labelspan联系地址:/spaninputid="address"type="text"value=""name="address"placeholder="请输入联系地址"/divclass="error-msg"/div/label
13.labelspan留言:/spantextareaid="message"name="message"placeholder="请输入你的建议"/textareadivclass="error-msg"/div/labeldivclass="success-msg"/divlabelspan/spaninputtype="submit"class="button"value="提交"//labelinputtype='hidden'name='csrfmiddlewaretoken'value='SfHkbL4feo1G00sJQtbO7TtLN4c2BUwa'//form
14./body/html
TAG标签: 比较好看的表单的样式实例美观的表单小程序小程序表单制作
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

