欢迎来到路由器窝!
contact-form-7 表单样式

contact-form-7 表单样式

浏览次数:

作者: 小编

信息来源:

更新日期: 2022-09-29 10:17

文章简介

<div id="responsive-form" class="clearfix"><div class="form-row"><div class="

  • 正文开始
  • 相关文章

image.png

<div id="responsive-form" class="clearfix">
<div class="form-row">
<div class="column-half">[text text-777 "Name"]</div>
</div>
<div class="form-row">
<div class="column-half">[email your-email "Email"]</div>
</div>
<div class="form-row">
<div class="column-full">[text text-777 "Country"]</div>
</div>
<div class="form-row">
<div class="column-full">[text text-777 "Your Interested Cable"]</div>
</div>
<div class="form-row">
<div class="column-full">[textarea textarea-973 "Message"]</div>
</div>
<div class="form-row">
<div class="column-full">[submit "Send"]</div>
</div>
 
</div>
<style>
/*Contact form 7两列*/
#responsive-form{
  max-width:600px /*-- change this to get your desired form width --*/;
  margin:0 auto;
        width:100%;
}
.form-row{
  width: 100%;
}
.column-half, .column-full{
  float: left;
  position: relative;
  padding: 0.65rem;
  width:100%;
  -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box
}
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
/**---------------- Media query ----------------**/
@media only screen and (min-width: 48em) { 
  .column-half{
    width: 50%;
  }
}
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
        box-sizing: border-box
}
.wpcf7 input[type="text"]:focus{
  background: #fff;
}
.wpcf7-submit{
  float: right;
  background: #CA0002;
  color: #fff;
  text-transform: uppercase;
  border: none;
  padding: 8px 20px;
  cursor: pointer;
}
.wpcf7-submit:hover{
  background: #ff0000;
}
span.wpcf7-not-valid-tip{
  text-shadow: none;
  font-size: 12px;
  color: #fff;
  background: #ff0000;
  padding: 5px;
}
div.wpcf7-validation-errors { 
  text-shadow: none;
  border: transparent;
  background: #f9cd00;
  padding: 5px;
  color: #9C6533;
  text-align: center;
  margin: 0;
  font-size: 12px;
}
div.wpcf7-mail-sent-ok{
  text-align: center;
  text-shadow: none;
  padding: 5px;
  font-size: 12px;
  background: #59a80f;
  border-color: #59a80f;
  color: #fff;
  margin: 0;
}

.wpcf7-text,.wpcf7-textarea{
  width:100%;
  font-size: 16px !important;
  padding:12px !important;
}
.wpcf7-submit{
  width:100%;
  background-color: red;
  color: white;
  border:none !important;
  font-size: 16px !important;
  padding:10px !important;
}

</style>

image.png

单行样式

<style>
/*Contact form 7两列*/
#responsive-form{
  max-width:600px /*-- change this to get your desired form width --*/;
  margin:0 auto;
        width:100%;
}
.form-row{
  width: 100%;
}
.column-half, .column-full{
  float: left;
  position: relative;
  padding: 0.65rem;
  width:100%;
  -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box
}
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
/**---------------- Media query ----------------**/
@media only screen and (min-width: 48em) { 
  .column-half{
    width: 100%;
  }
}
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
        box-sizing: border-box
}
.wpcf7 input[type="text"]:focus{
  background: #fff;
}
.wpcf7-submit{
  float: right;
  background: #CA0002;
  color: #fff;
  text-transform: uppercase;
  border: none;
  padding: 8px 20px;
  cursor: pointer;
}
.wpcf7-submit:hover{
  background: #ff0000;
}
span.wpcf7-not-valid-tip{
  text-shadow: none;
  font-size: 12px;
  color: #fff;
  background: #ff0000;
  padding: 5px;
}
div.wpcf7-validation-errors { 
  text-shadow: none;
  border: transparent;
  background: #f9cd00;
  padding: 5px;
  color: #9C6533;
  text-align: center;
  margin: 0;
  font-size: 12px;
}
div.wpcf7-mail-sent-ok{
  text-align: center;
  text-shadow: none;
  padding: 5px;
  font-size: 12px;
  background: #59a80f;
  border-color: #59a80f;
  color: #fff;
  margin: 0;
}

.wpcf7-text,.wpcf7-textarea{
  width:100%;
  font-size: 16px !important;
  padding:12px !important;
}
.wpcf7-submit{
  width:100%;
  background-color: red;
  color: white;
  border:none !important;
  font-size: 16px !important;
  padding:10px !important;
}

</style>


转载请注明:js脚本» contact-form-7 表单样式

标签:
上一页:英文高德地图
下一页:高德地图不需要key
最近更新作品
手机单页图片 二维码随机
更新时间:2024-04-17

741人已经看过了!

二维码本地化不借助三方API
更新时间:2024-04-17

512人已经看过了!

搜索引擎来路
更新时间:2024-04-15

545人已经看过了!

全国三级联动特效
更新时间:2024-03-02

812人已经看过了!

js点击下载密码
更新时间:2024-02-28

760人已经看过了!

apache htaccess安全规则设置
更新时间:2024-01-31

825人已经看过了!

自动翻译插件
更新时间:2024-01-05

910人已经看过了!

复制微信号弹窗带二维码
更新时间:2024-01-02

787人已经看过了!

点击复制
更新时间:2024-01-02

617人已经看过了!

地图自适应
更新时间:2023-10-15

732人已经看过了!