简体   繁体   English

CSS文本布局问题

[英]CSS text layout issue

I am using alertify to display notification on my application, The text in success notification is wrap and in multiple lines but I want it on one single line? 我正在使用alertify在我的应用程序上显示通知,成功通知中的文本为多行换行,但我希望在一行上显示吗?

How do I do it? 我该怎么做?

I am not able to add link to CodePen in question hence added it in comment, Please check live demo. 我无法将链接添加到有问题的CodePen,因此在评论中添加了它,请检查实时演示。

Click on "Success notification" button you will get the popup and in that popup the text is is in multiline but I want it in single line. 单击“成功通知”按钮,您将获得弹出窗口,在该弹出窗口中,文本为多行,但我希望为单行。

.alertify-logs {
position: fixed;
z-index: 5000;
bottom: 10px;
right: 10px;
width: auto; 
}

I changed width: 300px; 我更改width: 300px; to width: auto; width: auto; . It's on single line. 在单行上。 Is that what you wanted, correct? 那是您想要的,对吗? It also auto adjusts to whatever lenght of your text is/will be. 它还会自动调整为您的文字长度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM