Tip提示框另类写法
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>css+div 小三角tip小提示</title> <style> .w{ width:200px; position:absolute; background:#999; left:400px; top:200px; font-size:12px; text-align:left} .x{ width:180px; position:relative; background:#ff9; border:1px solid #F96; padding:10px; left:-4px; top:-4px;} .y , .z{position:absolute; left:130px;} .y{ color:#ff9; top:-6px;} .z{ color:#f96; top:-7px;} </style> </head> <body> <div class="w"> <div class="x"><p>我是tip你信不信</p> <div class="z">◆</div> <div class="y">◆</div> </div> </div> </body> </html>