我無法編輯div中的鏈接。我希望鏈接文本在黑色div內垂直居中。我還希望盒子背景在懸停時變成紅色...... 非常感謝您的幫助!樣式鏈接中的文本
HTML:
<div id="footer_subscribe">
<input type="text" class="subscribe" value="Email Address" />
<a href="#" class="footer_social">Subscribe</a>
</div>
<div id="footer_facebook">
<img src="http://s26.postimg.org/q5tytjx2t/nav_facebook.jpg" />
<a href="#" class="footer_social">Become a Fan</a>
</div>
<div id="footer_youtube">
<img src="http://s26.postimg.org/rywvhvi9h/nav_youtube.jpg" />
<a href="#" class="footer_social">Watch Us</a>
</div>
CSS:
#footer_subscribe {
background:#000;
width:305px;
height:35px;
float:left;
padding:0;
}
input.subscribe {
border:2px solid black;
margin:2px;
width:200px;
height:24px;
}
#footer_facebook {
background:#000;
width:155px;
height:35px;
float:left;
padding:0;
margin-left:5px;
}
#facebook_logo {
width:32px;
height:32px;
}
a.footer_social {
font-family:Arial, Helvetica, sans-serif;
font-size:1em;
/* 14px/16=0.875em */
font-style:normal;
text-decoration:none;
color:#FFF;
}
a:link.footer_social {
font-family:Arial, Helvetica, sans-serif;
font-size:1em;
/* 14px/16=0.875em */
font-style:normal;
text-decoration:none;
color:#FFF;
}
a:link.visited.footer_social {
color:#FFF;
}
a:link.hover.footer_social {
color:#F00;
}
感謝這麼多的幫助! :-)開車讓我瘋狂 – Rabbid 2014-08-30 11:22:49
不客氣@ user2220758 – Farshad 2014-08-30 11:35:32