フォーム送信ボタンのスタイルを設定するには? これは可能ですか、それとも画像(png)を使用する必要がありますか? 私は次のようなことを意味します:
99147 次
7 に答える
2
try this
.button {
-moz-border-radius: 25px;
-moz-box-shadow: #6E7849 0px 0px 10px;
-moz-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-webkit-border-radius: 25px;
-webkit-box-shadow: #6E7849 0 0 10px;
-webkit-transition: all 0.5s ease;
background-color: #6E7849;
background-image: -moz-linear-gradient(90deg, #B9C788, #6E7849);
background-image: -ms-linear-gradient(90deg, #B9C788, #6E7849);
background-image: -o-linear-gradient(90deg, #B9C788, #6E7849);
background-image: -webkit-linear-gradient(90deg, #B9C788, #6E7849);
background-image: linear-gradient(90deg, #B9C788, #6E7849);
border-radius: 25px;
border: 2px solid #4a5032;
box-shadow: #6E7849 0px 0px 10px;
color: #ffffff;
display: inline-block;
font-size: 4em;
margin: auto;
padding: 15px;
text-decoration: none;
text-shadow: #000000 5px 5px 15px;
transition: all 0.5s ease;
}
.button:hover {
padding: 15px;
}
OR
try your choice color combination button
http://www.cssdrive.com/css3button/
于 2013-06-21T13:11:25.003 に答える
1
ブラウザーには、ウェブサイトでスタイルが設定されていない場合に見栄えを良くするためのデフォルトのスタイルが多数用意されています。たとえば、Firefox では、デフォルトの送信ボタンに次のスタイルが定義されています。
input[type="submit"] {
-moz-appearance: button;
-moz-binding: none;
-moz-box-sizing: border-box;
-moz-user-select: none;
background-color: buttonface;
border: 2px outset buttonface;
color: buttontext;
cursor: default;
font: -moz-button;
line-height: normal;
padding: 0 6px;
text-align: center;
text-shadow: none;
white-space: pre;
}
于 2013-06-21T13:09:09.750 に答える