如何对角度材料输入进行水平链接?

问题描述 投票:0回答:1

如何对角度材料(6.3.3)输入水平链接(和任何其他文本)?

<div>
      <mat-form-field class="example-full-width">
         <input type="text" placeholder="Input" matInput >
      </mat-form-field>

      <a style="cursor: pointer;text-decoration: underline;">click</a>
</div>

而不是这个

enter image description here

应该

enter image description here

angular-material2
1个回答
0
投票

两人看起来都很糟糕IMO。我认为你想要的结果更糟糕,因为文本基线排成一行。 Material Design中的链接没有像传统链接那样。它们可能具有不同的颜色和悬停效果,但通常不使用下划线。如果使用高亮/悬停颜色而不是下划线以及光标(或使用按钮<a mat-button>),它将正确排列并显示“材质”。

© www.soinside.com 2019 - 2024. All rights reserved.