純css定義帶箭頭的視窗代碼

來源:互聯網
上載者:User
 代碼如下 複製代碼

<!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>
<head>
<title>無圖片帶箭頭的視窗(二)</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<!--把下面代碼加到<head>與</head>之間-->
<style type="text/css">
.rc_box1,.rc_box2,.rc_box3{display:inline-block;*display:inline;*zoom:1;position:relative;border-style:solid;border-color:#ddd;}
.rc_box2,.rc_box3{border-width:0 1px;*left:-2px;background-color:#f3f3f3;}
.rc_box1{border-width:1px;line-height:1.5;}
.rc_box2{margin:0 -2px;}
.rc_box3{margin:1px -2px;padding:0 6px;}
.ov1,.ov2{position:absolute;left:44%;overflow:hidden;width:0;height:0;border-left:6px dotted transparent;border-right:6px dotted transparent;
border-top:6px solid transparent;}
.lov1,.lov2{position:absolute;top:34%;overflow:hidden;width:0;height:0;border-top:6px dotted transparent;border-bottom:6px dotted transparent;
border-right:6px solid transparent;}
.ov1{top:26px;border-top-color:#ddd;}
.ov2{top:25px;border-top-color:#f3f3f3;}
.lov1{left:-9px;border-right-color:#ddd;}
.lov2{left:-8px;border-right-color:#f3f3f3;}
</style>
</head>
<body>
<!--把下面代碼加到<body>與</body>之間-->
<div class="rc_box1">
  <div class="rc_box2">
    <div class="rc_box3">oh, my god! http://www.111cn.net   </div>
  <div class="lov1"></div>
  <div class="lov2"></div>
  <div class="ov1"></div>
  <div class="ov2"></div>
</div>
</body>
</html>

 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.