使用jquery绘制背景方框,具体样式参考:http://malsup.com/jquery/corner/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> <script type="text/javascript" src="jquery-1.7.1.js"></script> <script type="text/javascript" src="jquery.corner.js"></script> </HEAD> <BODY> <div id="dynamic" style="background-color:#CCCCFF; width:150px; padding-top:20px; padding-bottom:20px; text-align:center">方框中的内容</div> <script type="text/javascript"> $('#dynamic').corner("dog 12px"); </script> </BODY> </HTML>