如何创建具有多行文本的离子按钮,在离子V6/V5中包装文本
我遇到了一个问题,创建一个带有离子V6/V5中多行文本的离子按钮,问题是整个文本都出现在一行中,并且没有显示部分文本。就像
<ion-button expand="block" size="large">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.</ion-button>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,基本上,修复程序是添加类
ion-text-wrap
,如下所示,来自文档:这将增加按钮的高度,并在文本周围进行按钮包裹。在该措辞中明确搜索时,我在文档中没有发现这一点。
该示例还添加在
so basically the fix was adding the class
ion-text-wrap
, that goes as below ,from documentation:this would increase the height of the button and make the button wrap around the text. I did not find that in the documentation while searching explicitly in that wording.
The example also added in the stackblitz