I want to style the 开发者_如何学Goconfirm box generated by JavaScript. I want the background color of the box to be green and replace ok/cancel
with yes/no
. Do you know how to do this ?
You can't style a confirm();
alert -- this is generic to the browser. Instead, look into alternatives such as boxy for jQuery: http://onehackoranother.com/projects/jquery/boxy/
Of course, you can style this in CSS until your heart melts. ;-)
You can also use the jQuery dialog box. Check this out jQuery Dialog
精彩评论