单击按钮时如何使按钮悬停在按钮上?

时间:2016-07-31 21:41:37

标签: javascript html css typescript angular

我有3个按钮:

<div>
  <button md-button
          (click)="setButtonIndex(0)"
          class="md-primary">Button1
  </button>

  <button md-button
          (click)="setButtonIndex(1)"
          class="md-primary">Button2
  </button>

  <button md-button
          (click)="setButtonIndex(2)"
          class="md-primary">Button3
  </button>
</div>

它看起来像这样:

enter image description here

请注意,按钮上的不同bg是在悬停时,但是当有人点击按钮时,我希望保留...

感谢

0 个答案:

没有答案