求一CSS样式

来源:百度知道 编辑:UC知道 时间:2024/06/16 12:36:59
哪里有左边是多条文字(如新闻标题),鼠标放到文字上面,右边的框框显示相应的内容(这个框框式固定好大小和位置大的),
要在FIREFOX也能运行,谢谢!
应该是把,不太懂这些,但是我要用到

<html>
<head>
<title>例子</title>
</head>
<style type="text/css">

.a{ display:block; position:relative; font: 12px/25px "宋体"; color:#333333; text-decoration:none;}
.a span{ display:none;}
.a:hover span{ position:absolute; top:0; left:60px; display:block; width:150px; border:1px dashed #cccccc;}
</style>
</head>
<a href="#" class="a">新闻标题1<span>11111111111111111111</span></a>
<a href="#" class="a">新闻标题2<span>2222222222222222222222</span></a>
<a href="#" class="a">新闻标题3<span>3333333333333333333333333</span></a>
<a href="#" class="a">新闻标题4<span>4444444444444444444444444</span></a>
</body>
</html>

去找找JS相关的吧。。