易截截图软件、单文件、免安装、纯绿色、仅160KB

IE6 下:hover 中bug解决了(纯CSS)

这个bug,主要是一个二级菜单,在ie7中hover时正常显示出来,在ie6下没有效果。在网上找了很多资料,弄了好几天,最终是参照别人的代码,用的纯css经过自己的整理,就把它给弄下来了。希望以后自己多来看看。
如下:
 -------------------
css代码:
.allMenu
{
    width: 894px;
    height: 22px;
    line-height: 22px;
    margin: 7px 3px 1px 3px;
    background: url(images/menubg.GIF) repeat-x top left;
}
.allMenu .select
{
    padding: 0px;
    margin: 0px;
    white-space: nowrap;
    list-style-type: none;
}
.allMenu LI
{
    height: auto;
    padding: 0px;
    float: left;
    margin: 0px;
}
.allMenu .select A
{
    height: 22px;
    padding: 0 20px 0 20px;
    display: block;
    float: left;
    color: Black;
    line-height: 22px;
    white-space: nowrap;
    text-decoration: none;
}
.allMenu .select A:hover /* for ie6 */
{
    cursor: pointer;
    background: url(images/hoverbg.JPG) repeat-x top left;
}
.allMenu .select LI:hover A
{
    cursor: pointer;
    background: url(images/hoverbg.JPG) repeat-x top left;
}
.allMenu .select A:hover B    /* for ie6,主要在ie6下样式有变化 */
{
    cursor: pointer;
    background: url(images/hoverbg.JPG) repeat-x top left;
    display: block;
    float: left;
}
.allMenu  .select_sub {
 display: none; /*不可见*/
}
.allMenu .sub
{
    padding: 0px;
    margin: 0px auto;
    list-style-type: none;
}
.nav TABLE
{
    font-size: 1em;
 &nbs


相关文档:

300+Jquery, CSS, MooTools 和 JS的导航菜单资源


   
如果你是网站前端开发人员,那么对你来说,也许做一个漂亮导航菜单会很得心应手。本文要为大家总结各种导航菜单的资源,以便让大家的网站前端开发的工作更
方便更快速,只要选择现成的例子就可以应用于自己的网站了。本文收集的这些资源,从非常简单的HTML和CSS导航菜单,到非常复杂和高级的
JQuer ......

10个非常有用的CSS技巧


1. 将网页或元素居中       
      
    
HTML:
<div class="wrap">  
</div><!-- end wrap -->  
CSS:
.wrap { width:960px; margin:0 auto;}   ......

css div 鼠标经过时图片变大

<style>
#enlarge {padding:0; margin:2em auto; list-style-type:none; width:240px;
height:40px;}
#enlarge li {display:block; float:left; width:40px; height:40px;
position:relative;}
#enlarge li a {display:block; width:40px; height:40px; background:transparent;
overflow:hidden; positio ......

css定位中absolute要注意的事项

1.position的absolute属性表示该块已经完全脱离文本流了。也就是不再占用空间位置
。完全靠top,button,right,left来进行定位。
 这个必须能够完全理解。同时为减少错误在设置absolute后,一定至少指定top,buttom,right,left中的一个。
2.如果块设置了absolute属性,其定位的原点和父块的position有关。
 如果父块设置 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号