日期:2014-05-17  浏览次数:20674 次

marquee在FF下面的问题,好郁闷
<!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=gb2312" />
<title>无标题文档</title>
<style type="text/css">
.info ul, li {
list-style-type: none;
}
.info li {
float:left;
margin-left:30px;
display:inline;
}

.info {

text-decoration:none;
font-size:12px;
width:500px;
text-align:center;
border:1px solid #ccc;
height:50px;
line-height:25px;
}
.info a {
text-decoration:none;
float:left;
display:inline;
line-height:20px;
}
.info span {
display:none;
float:right;
}


.info:hover span {
display:block;
height:25px;
width:200px;
border:1px solid #ff0000;
background:#fff;
color:#000;
line-height:18px;
text-align:left;
float:right;
overflow:hidden;
}/*下面的代码暂时在IE内不起作用*/
.info:hove span marquee{
height:25px;

width:100%;

display:inline;
}

</style>
</head>
<body>
……
<ul class="info">
  <li><a href="http://www.cainiao8.com">CSS提示</a><span>你可以在这里写一些提示</span></li>
</ul>
<ul class="info">
  <li><a href="http://www.cainiao8.com">CSS提示</a><span><marquee direction="left" style="margin-right:-120px;">你可以在这里写一些提示</marquee></span></li>
</ul>
<span style="font-size:12px;"><marquee direction="right" scrollamount="3">你可以在这里写一些提示</marquee></span>
</body>
</html>


在IE下面挺正常的.但是在FF下面就有问题,无论外层的<span>怎么浮动,<marquee>就是在<a>的右边,margin 0px 的地方...为什么啊!

------解决方案--------------------
没有人会啊..柠檬..顶个..
------解决方案--------------------
不要用 marquee, 不合 w3c 规范。
用 js 做
------解决方案--------------------
用 js 模拟marquee