现在的位置: 首页 > 综合 > 正文

模仿新浪微博转发框,算是挺兼容的了,转发请写上我的博客名,谢谢。除IE8不太兼容的,其它大家看到不兼容请给我回复,谢谢

2012年05月09日 ⁄ 综合 ⁄ 共 932字 ⁄ 字号 评论关闭
View Code
.big{
margin-top
:400px;
margin-left
:200px;
height
:120px;
width
:400px;
background-color
:#F8F8F8;
border
:1px solid #EFE7B6;
border-radius
:3px 3px 3px 3px;}

.arrow{
width
:30px;
margin-left
:20px;
margin-top
:-8px !important;
_margin-top
:-8px;
}

.a,.b{
display
:block;
font-style
:normal;
font-family
:"宋体";
font-size
:14px;
}
.b
{
position
:absolute;
margin-top
:-14.6px;
*margin-top
:-12.6px !important;
color
:#F8F8F8;
_margin-top
:2px;
}

.a{
_position
:absolute;
color
:#EFE7B6;
}

 

View Code
<!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>
<link rel="stylesheet" href="div.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<div class="big">
  <div class="arrow">
    <em class="a"></em>
    <span class="b"></span>  </div>
</div>
</body>
</html>

 

 

 请大家看看哈,非常少代码的,容易吧,哈哈

 

 

 

 

 

 

 

 

 

 

 

 

抱歉!评论已关闭.