最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Jquery Dialog, Adding a new line of styled text - Stack Overflow

programmeradmin0浏览0评论

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:

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?

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:

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?

Share Improve this question asked Apr 19, 2011 at 19:17 SoatlSoatl 10.6k28 gold badges101 silver badges156 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

Why \n? You should use <br />.

"You have an error... number <br /> Customer Support: ..."
发布评论

评论列表(0)

  1. 暂无评论