JQuerymobile和调酒师Tabbar - 个人图标

时间:2012-09-12 07:22:38

标签: css jquery-mobile

我对JQM和CSS很陌生,所以如果这是一个简单的问题我很抱歉...

我一直在玩Bartender Tabbar(http://www.stokkers.mobi/valuables/bartender.html)和JQM。调酒师标签栏附带一个菜单图标精灵。我想用库中的单个图标替换它们,例如glyphish。

我不确定我需要编辑的Bartender CSS文件的哪些部分,以便加载各个图标......任何帮助都会非常感激。

我想我需要编辑以下部分(来自Bartender.css):

/* ============= SEPERATE CSS-SPRITES  ======================= */

/*   7b. SEPERATE */

/*   REGULAR  */


.soloSprite li a .ui-btn-inner
{
    display: inline-block;
    position: static;
    height: 30px;
    width: 30px;
    background-color: none;
    background: url("sprite_lo-res.png") no-repeat; 
    background-size: 300px 44px; 
    -o-background-size: 300px 44px;
    -webkit-background-size: 300px 44px;
    -moz-background-size: 300px 44px;
    -ms-background-size: 300px 44px;    
}

.soloSprite li a[data-icon="features"] span:only-child 
{
    background-position:    0px 0px
}

.soloSprite li a[data-icon="brands"] span:only-child
{
    background-position:  -60px 0px
}

.soloSprite li a[data-icon="fees"] span:only-child
{
    background-position:  -30px 0px
}

.soloSprite li a[data-icon="contact"] span:only-child
{
    background-position:  -90px 0px
}

.soloSprite li a[data-icon="about"] span:only-child
{
    background-position: -120px 0px
}


.soloSprite .ui-icon::before
{
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorStr=#40ffffff,EndColorStr=#12ffffff);zoom: 1;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,.15)), to(rgba(255,255,255,.0)));
    background-image:  -webkit-linear-gradient(top, rgba(255,255,255,.25) 0%, rgba(255,255,255,.07) 48%, rgba(255,255,255,.0) 48.5%, rgba(255,255,255,.0) 100% ); 
    background-image: -ms-linear-gradient(top, rgba(255,255,255,.25) 0%, rgba(255,255,255,.07) 48%, rgba(255,255,255,.0) 48.5%, rgba(255,255,255,.0) 100% ); 
    background-image: -moz-linear-gradient(top, rgba(255,255,255,.25) 0%, rgba(255,255,255,.07) 48%, rgba(255,255,255,.0) 48.5%, rgba(255,255,255,.0) 100% ); 
    background-image: -o-linear-gradient(top, rgba(255,255,255,.25) 0%, rgba(255,255,255,.07) 48%, rgba(255,255,255,.0) 48.5%, rgba(255,255,255,.0) 100% );
    background-image: linear-gradient(top, rgba(255,255,255,.25) 0%, rgba(255,255,255,.07) 48%, rgba(255,255,255,.0) 48.5%, rgba(255,255,255,.0) 100% );    
}

1 个答案:

答案 0 :(得分:0)

我收到了Bartender创作者的回复......如果没有使用他提供的标准模板创建自己的图标集,就不容易做到这一点。