我希望用jquery mobile 中的 data-icons 中的一些图标替换我的单选按钮的文本。我的代码是这样的,在 jsfiddle
<div data-role="page">
<div data-role="content">
<div data-role="fieldcontain">
<fieldset data-role="controlgroup"><legend>Choose a direction:</legend>
<input type="radio" name="1" id="1" value="1" />
<label for="1">Up</label>
<input type="radio" name="1" id="2" value="2" />
<label for="2">Down</label>
</fieldset>
</div>
</div>
</div>
我想用 data-icon="arrow-u" 替换“up”,用 data-icon="arrow-d" 替换“down”。 这个答案显示了如何用外部图像替换,但是数据图标呢?