我有以下代码,我有两个问题:
** HTML
<select name="im_type" id="imtype">
<option value="Yahoo">Yahoo</option>
<option value="MSN">MSN</option>
<option value="GTalk">GTalk</option>
<option value="ICQ">ICQ</option>
<option value="AOL">AOL</option>
<option value="Skype">Skype</option>
</select>
** CSS
select#imtype option {
padding: 2px 0 2px 25px;
}
select#imtype option[value="Yahoo"] {
background: url('../images/yahoo.png') no-repeat 0 0;
}
select#imtype option[value="MSN"] {
background: url('../images/msn.png') no-repeat 0 0;
}
select#imtype option[value="GTalk"] {
background: url('../images/gtalk.png') no-repeat 0 0;
}
select#imtype option[value="ICQ"] {
background: url('../images/icq.png') no-repeat 0 0;
}
select#imtype option[value="AOL"] {
background: url('../images/aol.png') no-repeat 0 0;
}
select#imtype option[value="Skype"] {
background: url('../images/skype.png') no-repeat 0 0;
}
如果您有任何想法,请与我分享,谢谢
答案 0 :(得分:0)