Jquery Dialog, Adding a new line of styled text

前提是你 提交于 2019-12-01 04:39:51

问题


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?


回答1:


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

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


来源:https://stackoverflow.com/questions/5721477/jquery-dialog-adding-a-new-line-of-styled-text

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!