开发者社区 问答 正文

有关于html的问题

screenshot
.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-12 19:17:56 1816 分享 版权
1 条回答
写回答
取消 提交回答
  • IT从业

    请注意CSS的优先级关系啊

    .company li a 的优先级 高于 .cat-2 a

    所以 你设置的background-position 没有生效

    2019-07-17 19:34:58
    赞同 展开评论
问答标签:
问答地址: