用圖像改變標籤的文字是可能的嗎?例如,#unaestrella的文字爲「UnaEstrella」,我想要清晰的文字(或簡單地添加圖像填充或類似),並顯示從http://www.domain.com/images/unaestrella.png圖像。這可能嗎?用圖像改變標籤的文字
<ul class="radio_list">
<li>
<label for="unaestrella">
<input id="unaestrella" type="radio" value="unaestrella" name="topics"/>
UnaEstrella
</label>
</li>
<li>
<label for="dosestrellas">
<input id="dosestrellas" type="radio" value="dosestrellas" name="topics"/>
DosEstrellas
</label>
</li>
</ul>
謝謝,只有一個問題,爲插件生成html。我找到了一個可行的解決方案:ul.radio_list li label [for = unaestrella] {position:relative!important; float:left!important; line-height:25px!important; background-image:url(images/unaestrella.png);背景位置:左上角;背景重複:不重複!重要;寬度:100%!重要;顏色:透明!重要;}請點擊此處:http://www.buscatuspa.com/?post_type=post&topics=cincoestrellas – vektor
那麼,有什麼問題? –
用jQuery刪除文本可能嗎? – vektor