I have created CSS button from this site cssportal.com but after adding to my site I am getting different from original created. Why I am getting border from left and top.
Original View:
but currently I am getting this:
My Fiddle: Sample
I have created CSS button from this site cssportal.com but after adding to my site I am getting different from original created. Why I am getting border from left and top.
Original View:
but currently I am getting this:
My Fiddle: Sample
您忘记了删除原始浏览器边框:http: //jsfiddle.net/xm73g/2/
( border: 0px;
)
给border: 0;
CSS 一个...
预习
正常和悬停版本:
.wpcf7-submit {
font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: bold;
color: #FFFFFF !important;
font-size: 15px;
text-shadow: 1px 1px 0px #3498DB;
text-transform:uppercase;
padding: 10px 40px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 0;
background: #3498DB;
background: linear-gradient(top, #3498DB, #3498DB);
background: -ms-linear-gradient(top, #3498DB, #3498DB);
background: -webkit-gradient(linear, left top, left bottom, from(#3498DB), to(#3498DB));
background: -moz-linear-gradient(top, #3498DB, #3498DB);
}
将border:0也放在按钮上,它会起作用
添加边框:无;在这样的css代码中:
.wpcf7-submit {
font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: bold;
border:none;
color: #FFFFFF !important;
font-size: 15px;
text-shadow: 1px 1px 0px #3498DB;
text-transform:uppercase;
padding: 10px 40px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
background: #3498DB;
background: linear-gradient(top, #3498DB, #3498DB);
background: -ms-linear-gradient(top, #3498DB, #3498DB);
background: -webkit-gradient(linear, left top, left bottom, from(#3498DB), to(#3498DB));
background: -moz-linear-gradient(top, #3498DB, #3498DB);
}
.wpcf7-submit:hover {
color: #FFFFFF !important;
border:none;
background: #468CCF;
background: linear-gradient(top, #468CCF, #63B8EE);
background: -ms-linear-gradient(top, #468CCF, #63B8EE);
background: -webkit-gradient(linear, left top, left bottom, from(#468CCF), to(#63B8EE));
background: -moz-linear-gradient(top, #468CCF, #63B8EE);
}