【发布时间】:2013-07-30 20:31:51
【问题描述】:
我正在使用 angular-ui 引导轮播,并想用图像更改左右导航链接。似乎在 tpl 中它们被硬编码为 ‹ 和 ›
在不更改实际 angular-ui 引导文件的情况下将这些更改为图像是否有任何建议?我想将其保存在库中,并且不想在每个版本发布后更改它。
我唯一的解决方案是在 CSS 中使这些尖括号的控件变得超级小,这样它们就无法被看到并放置图像。
.carousel-control {
font-size: 1px
}
.carousel-control.left, carousel-control.right {
background: url(/path/to/[image-here].png) no-repeat !important;
}
有没有更好的解决方案?
【问题讨论】:
标签: carousel angular-ui-bootstrap