开发者社区 问答 正文

关于html的问题

screenshot

<div class="videonews_2">
 <img src="Images/light1.jpg" width="275px;" height="180px">
<div class="word_2">
    <p><a href="#">市关工委到文化市场调研学习相关经验</a></p>
    <span><a href="#"><img src="Images/bofang.gif" width="30"        height="30"></a></span>
  </div>
<div class="zhezhao">
</div> 
</div>

css

.videonews_2{ position:relative;}

.word_2{

width: 275px;
height: 50px;
background: rgba(0,0,0,0.7);
filter: alpha(opacity=70);
z-index: 1000;
position: absolute;
left: 0px;
top: 131px;



}
.word_2 p a{ display:block; color:#EEE; margin-left:10px; width:230px; margin-top:11px; line-height:15px; }
.word_2 span{

position: absolute;
left: 238px;
top: 11px;
z-index:1000;

} 

.zhezhao{

position: absolute;
width: 275px;
height: 180px;
background: rgba(0,0,0,0.8);
filter: alpha(opacity=80);
z-index: 1500px;
left: 1px;
top: 0px;
opacity:1;
 }    
 .word_2:hover .zhezhao{ opacity:0;}

展开
收起
杨冬芳 2016-06-22 16:23:12 2064 分享 版权
0 条回答
写回答
取消 提交回答
问答分类:
问答标签:
问答地址: