带有bartender.css的ios标签栏如何设置图标?

时间:2013-08-19 17:06:15

标签: html ios css jquery-mobile mobile-webkit

我正在尝试在我正在制作的项目中使用bartender.css。我希望用我自己的图标替换默认图标,但似乎无法找到如何操作。这里还有一个未解决的堆栈溢出:JQuerymobile and Bartender Tabbar - individual icons但我觉得应该再次询问,因为插件中的许多内容在过去一年左右似乎已经发生了变化。在该示例中,它显示了五个不同的图标。然而,我无法找到他们需要改变的地方。我相信图标Urls会在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% );
}

更新:我已经设置了一个JsFiddle。任何帮助表示赞赏。 http://jsfiddle.net/excUq/

0 个答案:

没有答案