css 联系表格7样式
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 联系表格7样式相关的知识,希望对你有一定的参考价值。
.wpcf7 input,
.wpcf7 textarea{
width: 90%;
padding:10px;
color:#8e8e8e;
font-family:Arial, Helvetica, sans-serif;
font-size:16px;
line-height: 20px;
border: solid 1px #9f9f9f;
box-shadow: inset 2px 2px 8px #bababa;
transition: all 0.2s ease;
}
.wpcf7 .wpcf7-list-item{
padding-left: 0;
margin-left: 0;
margin-right: 25px;
}
.wpcf7 .wpcf7-list-item input{
border: none;
padding-left: 0;
margin-left: 0;
}
.wpcf7 select{
outline: none;
font-size:16px;
font-family:Arial, Helvetica, sans-serif;
}
.wpcf7 input:hover,
.wpcf7 input:focus,
.wpcf7 input:active,
.wpcf7 textarea:hover,
.wpcf7 textarea:focus,
.wpcf7 textarea:active {
background: #ebf7f5;
outline: none;
}
.wpcf7 input.wpcf7-submit{
transition: 0;
border: none;
position: relative;
color: #fff;
text-shadow: 1px -2px 0px black;
text-transform: uppercase;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
font-size: 14px;
padding-top: 11px;
padding-bottom: 10px;
padding-left: 35px;
padding-right: 35px;
/* Gradient background */
background-color: #000000;
background: -webkit-gradient(linear, left top, left bottom, from(#4d1b5c), to(#000000));
background: -moz-linear-gradient(top, #4d1b5c, #000000);
/* Drop Shadow */
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
/* On hover */
.wpcf7 input.wpcf7-submit:hover{
cursor: pointer;
text-decoration: none;
background-color: #000000;
background: -webkit-gradient(linear, left top, left bottom, from(#4d1b5c), to(#6d2f80));
background: -moz-linear-gradient(top, #4d1b5c, #6d2f80);
}
/* On click */
.wpcf7 input.wpcf7-submit:active{
top: 1px;
color: #d8c6e2;
background-color: #000000;
background: -webkit-gradient(linear, left top, left bottom, from(#4d1b5c), to(#4d1b5c));
background: -moz-linear-gradient(top, #4d1b5c, #4d1b5c);
box-shadow: none;
}
/* CF7 Messages */
.wpcf7 .wpcf7-validation-errors{
border:none;
background-color:#f4ae46;
margin:0;
padding:20px;
border-radius: 10px;
}
.wpcf7 .wpcf7-mail-sent-ok{
border:none;
background-color:#7ad33f;
margin:0;
padding:20px;
border-radius: 10px;
}
.wpcf7 .wpcf7-mail-sent-ng{
border:none;
background-color:#cf2d38;
margin:0;
padding:20px;
border-radius: 10px;
color: white;
}
.wpcf7 span.wpcf7-not-valid-tip{
border:none;
background-color:#cf2d38;
padding:10px;
padding-left: 15px;
padding-right: 15px;
border-radius:10px;
width: 180px;
color: white;
/* Drop shadow */
box-shadow: 3px 3px 3px rgba(0,0,0,0.3);
}
.wpcf7-form .fleft{
float: left;
}
.wpcf7-form .mright20{
margin-right: 20px;
}
.wpcf7-form .mright40{
margin-right: 40px;
}
.wpcf7-form .clear{
clear: both;
}
/* --- Form and wrapper --- */
.wpcf7 {
width: 70%;
}
/* Set width of form and elements here */
.wpcf7-form {
margin-bottom: 100px;
font-size: 15px !important;
}
/* All font sizes */
/* --- Form elements --- */
.wpcf7-form input, .wpcf7-form select, .wpcf7-form textarea {
border: 1px solid #ccc;
padding: 10px 10px 10px 15px;
margin: 0 0 10px 0;
width: 100%;
-webkit-appearance: none;
outline: none;
box-sizing: border-box;
}
.wpcf7-form input {
}
/* Inputs only */
.wpcf7-form select {
background-image: url(img/drop-arrow.png);
background-repeat: no-repeat;
background-position: center right 15px;
color: #999;
padding: 10px;
}
/* Select boxes only */
.wpcf7-form textarea {
resize: vertical;
padding-top: 15px;
}
/* Textarea only */
.wpcf7-submit {
width: 60% !important;
background-color: #555;
color: #fff !important;
display: block;
margin: 0px auto !important;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: bold;
padding: 10px;
}
/* Submit button */
/* --- Form elements on hover --- */
.wpcf7-form input:hover, .wpcf7-form select:hover, .wpcf7-form textarea:hover {
background-color: #f9f9f9;
}
.wpcf7-submit:hover {
background-color: #666 !important;
}
/* --- Form elements on focus --- */
input[type="text"]:focus, select:focus, textarea:focus {
outline: 0;
border: 1px solid #555;
color: #555;
background-color: #f9f9f9;
}
/* --- Placeholder text --- */
::-webkit-input-placeholder, ::-moz-placeholder, :-ms-input-placeholder {
-webkit-appearance: none;
color: #ccc;
}
/* --- Hide placeholder text on focus --- */
input:focus::-webkit-input-placeholder, textarea:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder, textarea:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder, textarea:focus::-moz-placeholder {
color: transparent;
}
input:focus:-ms-input-placeholder, textarea:focus:-ms-input-placeholder {
color: transparent;
}
/* Loading gif on submit */
.wpcf7-form .ajax-loader {
position: relative;
margin: -27px 0 0 20px;
width: 20px;
height: auto;
}
/* Text box after submission */
.wpcf7-response-output {
}
以上是关于css 联系表格7样式的主要内容,如果未能解决你的问题,请参考以下文章