将其他图像插入到checkbox元素JQuery Mobile中 [英] Insert additional image into checkbox element JQuery Mobile
问题描述
我正在使用JQuery Mobile创建一个手机应用程序,并且有一个视觉效果,我想实现与复选框元素的列表。基本上,我想在每个checkbox元素的body中插入一个小图标(图片),位置如下:
I'm building a mobile phone application using JQuery Mobile, and there's a visual effect I'd like to achieve with a list of checkbox elements. Basically I'd like to insert a small icon (an image) into the body of each checkbox element in the following position:
是否可以使用JQuery Mobile实现这一点?谢谢。
Is it possible to achieve this with JQuery Mobile? Thanks.
推荐答案
这样的?
http://jsfiddle.net/KADqA/23/
只需添加一些样式的图像,应该工作。
something like that? http://jsfiddle.net/KADqA/23/ just add some styling to the image, should work.
(javascript在这种情况下并不真正有用的是如何添加一个链接到此字段的示例: http://jsfiddle.net/KADqA/ )
(the javascript is not really useful in that case. was a sample on how to add a Link into this field: http://jsfiddle.net/KADqA/)
这篇关于将其他图像插入到checkbox元素JQuery Mobile中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!