2

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

我一直在玩 Bartender Tabbar (http://www.stokkers.mobi/valuables/bartender.html) 和 JQM。Bartender 标签栏带有一个菜单图标示例精灵。我想用库中的单个图标替换这些图标,例如 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% );    
}
4

1 回答 1

0

我收到了 Bartender 的创建者的回复……如果不使用他提供的标准模板创建自己的图标集,就很难做到这一点。

于 2012-09-15T18:53:55.557 回答