前端小白做小实战含jQuery遇挫,为什么我的价格一开始加载的时候是重叠的,而后又好了_html/css_WEB-ITnose

nbsp;html>

    
    当当—网上购物中心:图书、母婴、美妆、家居、数码、家电、服装、鞋包等,正品低价,货到付款
    
body,ul,li,img,button, ol, ul, li, p, dl, dd,
h1, h2, h3, h4, h5, h6, iframe, input,form,
textarea,a{
margin: 0px;
padding: 0px;
list-style: none;
text-decoration: none;
font-size: 12px;
font-family: “微软雅黑”;
color: #4e4e4e;
}
a:link,a:visited{
color: #4e4e4e;
}
a:hover,a:active{
color: #ff2832;
}
#content {
width: 1200px;
height: 492px;
/*border: 1px solid silver;*/
margin: 0px auto;
overflow: hidden;
}
#content .tab_l{
width: 972px;
height: 492px;
float: left;

}

.title{
width: 100%;
height: 34px;
line-height: 34px;
border-bottom: 2px solid #ff2832;

}
.title h1{
font-size: 1.6em;
font-weight: normal;
color: #ff2832;
float: left;
margin-left: 5px;
}
.tab_sel{
margin-top: 13px;
float: right;
}
ul.tab_sel li{
width: 12px;
height: 12px;
border-radius: 50%;
background-color: dimgray;
float: left;
margin-right: 5px;
}
.tab_lframe{
height: 456px;
width: 972px;
position: relative;
}
.tab_lcontent{
height: 456px;
border-left: 1px solid #e6e6e6;
position: absolute;

}
.tabl_imgs {
height: 150px;
clear: both;
padding: 10px 21.6px;

}
.tabl_imgs {
width: 150px;
height: 150px;
}

.product {
height: 227px;
border-right: 1px solid #e6e6e6;
border-bottom: 1px solid #e6e6e6;
float: left;
position: relative;
}
.product p.price{
text-align: left;
text-indent: 10px;
color: #ff2832;
font-size: 1.3em;
}
ul li.hover{
background-color: #ff2832;
}

    
    
var index_2=0;
$(function(){
$(“ul.lbtn li”).hover(function(){
index_2=$(this).index();
$(this).addclass(“hover”).show().siblings().removeclass(“hover”);
$(“.tab_lcontent”).eq(index_2).show().siblings().hide();

})
},function(){})

    
        
            

畅品今日闪购

            
                
                
                
            
        
        
            
                
                    前端小白做小实战含jQuery遇挫,为什么我的价格一开始加载的时候是重叠的,而后又好了_html/css_WEB-ITnose
                    
                        

中国经典文学辞海

                            中国经典文学辞海

                        

¥199.00

                    
                
                
                    前端小白做小实战含jQuery遇挫,为什么我的价格一开始加载的时候是重叠的,而后又好了_html/css_WEB-ITnose
                    
                        

中国经典文学辞海

                            中国经典文学辞海

                        

¥19.00

                    
                
                
                    前端小白做小实战含jQuery遇挫,为什么我的价格一开始加载的时候是重叠的,而后又好了_html/css_WEB-ITnose
                    
                        

中国经典文学辞海

                            中国经典文学辞海

                        

¥39.00

                    
                
                
                    前端小白做小实战含jQuery遇挫,为什么我的价格一开始加载的时候是重叠的,而后又好了_html/css_WEB-ITnose
                    
                        

中国经典文学辞海

                            中国经典文学辞海

                        

¥99.00

                    
                
                
                     前端小白做小实战含jQuery遇挫,为什么我的价格一开始加载的时候是重叠的,而后又好了_html/css_WEB-ITnose
                    
                        

中国经典文学辞海

                            中国经典文学辞海

                        

¥59.00

                    
                
                
                    前端小白做小实战含jQuery遇挫,为什么我的价格一开始加载的时候是重叠的,而后又好了_html/css_WEB-ITnose
                    
                        

中国经典文学辞海

                            中国经典文学辞海

                        

¥999.00

                    
                
                
                    前端小白做小实战含jQuery遇挫,为什么我的价格一开始加载的时候是重叠的,而后又好了_html/css_WEB-ITnose
                    
                        

中国经典文学辞海

                            中国经典文学辞海

                        

¥1999.00

                    
                
                
                    前端小白做小实战含jQuery遇挫,为什么我的价格一开始加载的时候是重叠的,而后又好了_html/css_WEB-ITnose
                    
                        

中国经典文学辞海

                            中国经典文学辞海

                        

¥198.00

                    
                
                
                    前端小白做小实战含jQuery遇挫,为什么我的价格一开始加载的时候是重叠的,而后又好了_html/css_WEB-ITnose
                    
                        

中国经典文学辞海

                            中国经典文学辞海

                        

¥98.00

                    
                
                
                    前端小白做小实战含jQuery遇挫,为什么我的价格一开始加载的时候是重叠的,而后又好了_html/css_WEB-ITnose
                    
                        

中国经典文学辞海

                            中国经典文学辞海

                        

¥19.00

                    
                
            
           
           
            

回复讨论(解决方案)

以上是图片,上面代码少了个

和标签,太急了,没发全,第一次上论坛,见谅

这很好理解,jquery是等待文档加载完毕后才运行的,文档中的元素你不设置默认是显示的

这很好理解,jquery是等待文档加载完毕后才运行的,文档中的元素你不设置默认是显示的

可是一开始这个div不是overflow隐藏了吗?

这很好理解,jquery是等待文档加载完毕后才运行的,文档中的元素你不设置默认是显示的

可是一开始这个div不是overflow隐藏了吗?
overflow我没试过不清楚用法, 不过从字面意思只是溢出时隐藏吧.
我试过display:none;可以在加载时就隐藏

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至253000106@qq.com举报,一经查实,本站将立刻删除。

发布者:PHP中文网,转转请注明出处:https://www.chuangxiangniao.com/p/3117528.html

(0)
上一篇 2025年3月29日 13:42:46
下一篇 2025年3月29日 13:42:54

AD推荐 黄金广告位招租... 更多推荐

发表回复

登录后才能评论