简体   繁体   English

jQuery Mobile Split按钮列表,无图标

[英]JQuery Mobile Split button list without icon

I'm trying to do a list with two sections and different links on each one but I am not able to do it without using an icon in the right section of the list. 我正在尝试创建一个包含两个部分并在每个部分上具有不同链接的列表,但是如果不使用列表右侧部分中的图标,就无法做到这一点。

I have tried to put data-icon='false' everywhere but it doesn't work, it uses the default icon. 我试图将data-icon ='false'放到任何地方,但是它不起作用,它使用默认图标。

I also have tried to use and it works but I am not able to make it look as good as the split list. 我也尝试过使用它,但是它无法使它看起来像拆分列表一样好。

Any idea on how to do this?? 关于如何执行此操作的任何想法?

Thank you very much! 非常感谢你!

Can you override .ui-icon class of jquery mobile something like this, 您可以像这样重写jquery mobile的.ui-icon类吗?

.ui-icon-your_name_icon {
   width: 18px;
   height: 18px;
   -moz-border-radius: 0px;
   -webkit-border-radius: 0px;
   border-radius: 0px;
   background-position: 50% 50%;
   background: url("../images/some_one_image_transparent.png") no-repeat scroll 0 0 transparent;
}

I hope this helps. 我希望这有帮助。 :) :)

I have managed to do it with controlgroup like this and playing with widths in .css file: 我已经设法通过这样的controlgroup并在.css文件中播放了宽度:

<li data-role='list-divider'>
    <div data-role='controlgroup' data-type='horizontal' >
        <a class='resume' type='button' href='javascript:void(0)'>
            <span class='name' >Object Name </span>
        </a>
        <a class='info' type='button' href='javascript:void(0)'>
            <span class='name'>Max Value </span>
        </a>
    </div>
</li>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM