如何在警报或确认框中获取文本粗体? [英] How to get Text BOLD in Alert or Confirm box?

查看:155
本文介绍了如何在警报或确认框中获取文本粗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在警告或确认框中获取BOLD文本并更改文字颜色?

How to get BOLD Text and change color of text in Alert or Confirm box?

var conFrm =  confirm("Following List(s) already Sent...!\n<strong>List Name:  </strong>"+ss.replace(",","\n<b>Name: </b>")+"\n Do you want to send again...!");


推荐答案

你不能这样做。但是你可以使用自定义警报和确认框。

You can't do it. But you can use custom Alert and Confirm boxes.

你可以在这里阅读一些用户界面库:

You can read about some User Interface libraries here:

http://speckyboy.com/ 2010/05/17 / 15-javascript-web-ui-libraries-frameworks-and-libraries /

最常见的库是:

  • http://jqueryui.com/
  • http://mootools.net/
  • http://www.prototype-ui.com/
  • http://script.aculo.us/
  • http://developer.yahoo.com/yui/

这篇关于如何在警报或确认框中获取文本粗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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