css - 栏副标题按钮上的小图标

标签 css angularjs ionic-framework

我有一个 Ionic 应用程序栏子标题的代码。它确实运行良好,但人字形图标有点太大。我无法减小它的大小(到默认大小的一半。我试图用文本大小内联阶梯,但它对图标没有影响,但对文本有影响。我读过一些建议使用非内联的解决方案CSS,但我真的不明白其中的区别,因为我只是在做测试,所以我更喜欢内联它。有什么提示吗?

<div class="bar bar-subheader">
        <button class="button icon-left button-clear button-dark" ng-hide="hidePrevious" ng-click="previousDay()"><i class="icon ion-chevron-left"></i> {{previousDayTitle}} </button>
        <h1 class="title"><span style="font-size:30px"> {{todayTitle}} </span></h1>
        <button class="button icon-left button-clear button-dark" ng-hide="hideNext" ng-click="nextDay()"> {{nextDayTitle}} <i class="icon ion-chevron-right"></i></button>

</div>

最佳答案

这是缩小 V 形尺寸的插件。

Plunker

这是您需要的 css。

.bar .button.button-clear .icon:before{
  font-size: 12px;
}

关于css - 栏副标题按钮上的小图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38772418/

相关文章:

angularjs - 避免 Angular 版本冲突的最佳实践

javascript - 使用 Controller 作为 vm 语法时,在 TypeScript 中使用 $scope.$apply

jquery - 如何修改 Magnific Popup 中的关闭按钮行为?

java - GWT-2.5.1 :How can I add the outline parameter of CSS to DialogBox using UIBinder correctly?

html - Bootstrap Accordion 优缺点问题

android - ionic 错误: may not have the required environment or OS to build this project

ios - ionic (应用程序流): Please register custom URL scheme - scheme present in plist file

CSS继承: Override an ID parent selector with a CLASS child

javascript - AngularJS $http.get php 文件 - $injector :modulerr

angularjs - 使用 ionic 应用程序内的系统浏览器打开所有链接