jQuery对话框,添加新行的样式化文本 [英] Jquery Dialog, Adding a new line of styled text

查看:55
本文介绍了jQuery对话框,添加新行的样式化文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个客户支持对话框.我希望对话框具有两行文本和一个标题.第一行将是错误消息,第二行将是粗体的客户服务号码.这可能很难想象,所以我添加了一个我在绘画中创建的对话框来帮助您:

I am trying to create a customer support dialog. I want the dialog to have two lines of text, and a title. The first line will be an error message, and the second will be a bold customer service number. This may be hard to picture so I added a dialog I made in paint to help out:

我尝试制作一个新行语句(string Error = "You have an error... number \n Customer Support...),以查看是否可以分隔文本,但是那行不通.有什么建议吗?

I tried making a new line statement (string Error = "You have an error... number \n Customer Support...) to see if I could separate the text but that did not work. Any suggestions?

推荐答案

为什么\n?您应该使用<br />.

"You have an error... number <br /> Customer Support: ..."

这篇关于jQuery对话框,添加新行的样式化文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆