2011-07-04 9 views
0

のindex.html:今CSSでフォーム内のボタンをアニメーション化する方法は?フォームで

<form id="mc-embedded-subscribe-form" class="validate" name="mc-embedded-subscribe-form" method="post" action="mailing.php"><pre> 
<fieldset> 
<div class="mc-field-group"> 
<div class="input-cont"> 
<input id="email" class="required email input-text example" type="text" name="email" value="Your email address" onfocus="value=''" style="color: rgb(178, 178, 178);"> 
</div> 
</div> 
<div class="submit-cont"> 
<input id="submit" class="input-submit" type="submit" name="subscribe" value=""> 

CSS:

#content form #submit { 
    background: url("../img/join-button.png") no-repeat left top; 
    border: 0 none; 
    color: #221505; 
    cursor: pointer; 
    float: right; 
    font-size: 23px; 
    font-weight: 800; 
    height: 46px; 
    outline: 0 none; 
    position: relative; 
    top: 1px; 
    width: 102px; 

すると、この場合に指定する方法:置いて:活性特性と私はないそうであるように背景画像を変更私のhtmlには何か値がありますか、これを行うには良い方法がありますか?ありがとう。

+0

動作するはず? –

答えて

0

これは、あなたがHTMLを供給できる

#content form #submit:hover { 
    background-image: ... 
} 

#content form #submit:active { 
    background-image: ... 
} 
+0

これを試してみてください:#content form #submit:hover { background-image:url( "../ img/join-button.png")no-repeat left top; } #コンテンツフォーム#サブミット:アクティブ{ 背景画像:url( "../ img/join-button.png")ノーリピート左下;どういうわけか、どちらもうまくいきません。 P.S. ofcourse、私はこれのためのダブル写真を作成しました。 – funguy

+0

が解決されました。ありがとう!ちょうど背景画像から背景に変更 – funguy

関連する問題