Tipプロンプトボックスの書き方
10069 ワード
<!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>