Set font size of Angular Material Tooltip

后端 未结 8 1405
-上瘾入骨i
-上瘾入骨i 2020-12-18 17:37

I am very new to web development, and I cannot figure out how to solve the following issue, although it may be very easy.

I am using Angular 4 and Angular Material t

相关标签:
8条回答
  • 2020-12-18 18:27

    add following code in your styles.css to increase its font size i.e. 12px

    CSS

    .mat-tooltip {
      font-size: 14px !important;
    }
    

    and use matTooltip in your tag's as.

    <p matTooltip="My Tooltip">...<p>
    
    0 讨论(0)
  • 2020-12-18 18:27

    I dont have an experience with angular but you may add a class or id for div. Then you may control with this class or id with css file.

    <div  class="sth" mdTooltip="tooltip text" mdTooltipPosition="above"> <span>Show tooltip</span> </div>
    

    And

    .sth{
        font-size:20px;
    }
    

    in css file.

    0 讨论(0)
提交回复
热议问题