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">&#9670</div> 
    <div class="y">&#9670</div> 
  </div> 
</div> 
</body> 
</html> 

 


posted @ 2015-11-19 23:10  小彭博客  阅读(1139)  评论(0编辑  收藏  举报