[英]styling angular-ui rating directive on mobile devices
I am using the angular-ui rating icon on a responsive site and on mobile size devices the stars are being forced onto two lines in some places. 我在响应式网站上使用angular-ui评级图标,在移动设备设备上,星星在某些地方被强制插入两行。 I want to change the font size(they are font icons so I am assuming this is the best way to do it) to something slightly smaller when on a mobile device.
我想在移动设备上更改字体大小(它们是字体图标,所以我假设这是最好的方法),稍微小一些。
I can target the stars with this css 我可以用这个css瞄准星星
span.rating > i.glyphicon::before
and my changes take effect in the deskptop browser but not on android or ios 7 on ipad or iphone 我的更改在桌面浏览器中生效,但不在ipad或iphone上的android或ios 7上生效
What am I missing? 我错过了什么?
Try targeting the containing element instead: 请尝试定位包含元素:
.glyphicon.ng-scope.glyphicon-star {
font-size: 2em;
}
http://plnkr.co/edit/H92Cv9uPpd1QIOb2mbdc?p=preview http://plnkr.co/edit/H92Cv9uPpd1QIOb2mbdc?p=preview
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.