三零网 www.q3060.com -- 技术、分享、进步
当前位置: > 网络编程 > CSS/HTML > html5实例:CSS3制作的带flash特效的Form表单提示特效的表单表格代码

html5实例:CSS3制作的带flash特效的Form表单提示特效的表单表格代码

投稿:mmqxmq2p  发布时间:2018-02-01  【手机版】  人气:

导读:三零(q3060.com)小编琪琪接下来为你介绍一下关于表单表格的技巧,希望对您有帮助。那么下面我们一起看看,具体内容所述如下:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>CSS3制作的带flash效果的Form表单提示效果</title>
<style type="text/css" media="screen">
form {
  margin: 20px 0 18px;
}
fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}
label,
input,
button{
  font-size: 13px;
  font-weight: normal;
  line-height: 18px;
}
input,
button{
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
label {
  display: block;
  margin-bottom: 5px;
  color: #333333;
}
input{
  display: inline-block;
  width: 210px;
  height: 18px;
  padding: 4px;
  margin-bottom: 9px;
  font-size: 13px;
  line-height: 18px;
  color: #555555;
  border: 1px solid #cccccc;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}
input[type="button"],
input[type="reset"],
input[type="submit"] {
  width: auto;
  height: auto;
}
input {
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
  -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
  -ms-transition: border linear 0.2s, box-shadow linear 0.2s;
  -o-transition: border linear 0.2s, box-shadow linear 0.2s;
  transition: border linear 0.2s, box-shadow linear 0.2s;
}
input:focus,
textarea:focus {
  border-color: rgba(82, 168, 236, 0.8);
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  outline: 0;
  outline: thin dotted \9;
  /* IE6-9 */

}
input{
  margin-left: 0;
}
input:focus:required:invalid,
textarea:focus:required:invalid,
select:focus:required:invalid {
  color: #b94a48;
  border-color: #ee5f5b;
}
input:focus:required:invalid:focus,
textarea:focus:required:invalid:focus,
select:focus:required:invalid:focus {
  border-color: #e9322d;
  -webkit-box-shadow: 0 0 6px #f8b9b7;
  -moz-box-shadow: 0 0 6px #f8b9b7;
  box-shadow: 0 0 6px #f8b9b7;
}
:-moz-placeholder {
  color: #999999;
}
::-webkit-input-placeholder {
  color: #999999;
}
.help-block,
.help-inline {
  color: #555555;
}
.help-block {
  display: block;
  margin-bottom: 9px;
}
.help-inline {
  display: inline-block;
  *display: inline;
  /* IE7 inline-block hack */

  *zoom: 1;
  vertical-align: middle;
  padding-left: 5px;
}
.form-horizontal input,
.form-horizontal .help-inline {
  display: inline-block;
  margin-bottom: 0;
}

.control-group {
  margin-bottom: 9px;
}
.form-horizontal .control-group {
  margin-bottom: 18px;
  *zoom: 1;
}
.form-horizontal .control-group:before,
.form-horizontal .control-group:after {
  display: table;
  content: "";
}
.form-horizontal .control-group:after {
  clear: both;
}
.form-horizontal .control-label {
  float: left;
  width: 140px;
  padding-top: 5px;
  text-align: right;
}
.form-horizontal .controls {
  margin-left: 160px;
  /* Super jank IE7 fix to ensure the inputs in .input-append and input-prepend don't inherit the margin of the parent, in this case .controls */

  *display: inline-block;
  *margin-left: 0;
  *padding-left: 20px;
}
.form-horizontal .help-block {
  margin-top: 9px;
  margin-bottom: 0;
}
.form-horizontal .form-actions {
  padding-left: 160px;
}
/*helps info*/

.form-horizontal .help-inline {
    position: relative;
    padding: 3px 6px;
    background: #444;
    color: #fff;
    z-index: -2;
    border-radius: 3px;
    -webkit-transition:all 0.5s;
  -moz-transition:all 0.5s;
  -o-transition:all 0.5s;
  -ms-transition:all 0.5s;
  transition:all 0.5s;
  position: relative;
  margin-left: -500px;
}    
.form-horizontal .help-inline::before {
    content:"";
    display: block;
    height: 0;
    width: 0;
    position: absolute;
    top: 7px;
    left: -12px;
    border: 6px solid transparent;
    border-right-color: #444;
    z-index: 2;
}
.controls {
    position: relative;
    overflow: hidden;
}    
.form-horizontal .help-block {
    background: #444;
    border-radius: 3px;
    padding: 3px 6px;
    position: absolute;
    top: 28px;
    left: 0;
    z-index: -2;
    color: #fff;
    -webkit-transition:all 0.5s;
  -moz-transition:all 0.5s;
  -o-transition:all 0.5s;
  -ms-transition:all 0.5s;
  transition:all 0.5s;
}
.form-horizontal .help-block::after {
    border: 6px solid transparent;
    border-bottom-color: #444;
    content:"";
    display: block;
    height:0;
    width: 0;
    left: 5px;
    top: -12px;
    z-index: 2;
    position: absolute;
} 
.form-horizontal input:active + .help-inline,
.form-horizontal input:focus + .help-inline {
    margin-left: 8px;
}
.form-horizontal .controls-block input:active,
.form-horizontal .controls-block input:focus {
    margin-bottom: 35px;
}
    </style>
</head>
<body>
<h1>ZAOLE.NET</h1>
<form action="#" method="post" class="form-horizontal">
    <fieldset>
        <div class="control-group">
            <label for="email" class="control-label">E-Mail:</label>
            <div class="controls controls-inline">
                <input type="email" id="email" />
                <span class="help-inline">Please Input Your Email!</span>
            </div>
        </div>
        <div class="control-group">
            <label for="password" class="control-label">Password:</label>
            <div class="controls controls-inline">
                <input type="password" id="password" />
                <span class="help-inline">Please Input Your Password!</span>
            </div>
        </div>             
    </fieldset>
    <fieldset>
        <div class="control-group">
            <label for="email" class="control-label">E-Mail:</label>
            <div class="controls controls-block">
                <input type="email" id="email" />
                <span class="help-block">Please Input Your Email!</span>
            </div>
        </div>
        <div class="control-group">
            <label for="password" class="control-label">Password:</label>
            <div class="controls controls-block">
                <input type="password" id="password" />
                <span class="help-block">Please Input Your Password!</span>
            </div>
        </div>             
    </fieldset>
</form>
</body>
</html>

<br><font color=black>目前IE8及以前版本不兼容CSS3,请使用IE9/火狐/Chrome浏览器运行本效果。<br><hr><p align="center">本特效由 <a href="http://www.q3060.com" target="_blank">三零网</a>丨 收集于互联网,只为兴趣与学习交流,不作商业用途。来源:源码爱好者</p></font>

结语:以上就是分享给大家的表单表格内容了,希望大家多多支持三零网站。更多知识点,可以能过本站网页顶端的搜索或进入相关专题,如果有任何疑问都可以一起留言交流。

●【往下看,下一页更精彩】●
1  2  3  4  5  6  7  下一页 
延伸阅读:
·html5实例:简单JS代码实现图片上传预览功能的表单表格代码
·html5实例:只能点击一次的按钮,提交后变成灰色不可再次点击的表单表格代码
·html5实例:CSS美化修饰的文本按钮的表单表格代码
·html5实例:JS+CSS模拟可以无刷新显示内容的留言板功能的表单表格代码
·html5实例:复选框限制,超过限制即弹出警告框的表单表格代码
·html5实例:JS控制超过长度限制后自动跳转下一款文本框的表单表格代码
·html5实例:JS+CSS实现可以凹陷显示选中的单元格的表单表格代码
·html5实例:JS实现很酷的EMAIL地址添加功能的表单表格代码
·html5实例:两种Select下拉列表跳转菜单的表单表格代码
·html5实例:CSS美化的按钮样式,感应鼠标更换边框颜色的表单表格代码
  
温馨提示:以上内容整理于网络,仅供参考,如果对您有帮助,请收藏本网站!
大家感兴趣的内容
最新的内容
热门搜索
三零网 | 网站地图 | 最近更新 | 八千壁纸 | 512素材 | 最近更新 | 关于我们 | 联系方式 | |

Copyright © 2012-2020,Q3060.COM All Rights Reserved.