将菜单放在div中 [英] placing a menu in a div
问题描述
你好我正在做一个大学项目:
我想研究视差效果,我做了这个水平滚动网站。看看
http://jsfiddle.net/karn21/6S9Kt/ [ ^ ]。
现在当我尝试放置此菜单时(请查看链接)
HTTP://www.red-team- design.com/wp-content/uploads/2012/04/interactive-menu-css3-jquery-demo.html [ ^ ]在第三个部门我看不到任何输出窗口。
有人可以帮助我,我可能错了吗?
hello i am working on a college project:
I wanted to work on parallax effect and i made this horizontal scrolling website.have a look
http://jsfiddle.net/karn21/6S9Kt/[^].
Now when i try to place this menu (check link please)
http://www.red-team-design.com/wp-content/uploads/2012/04/interactive-menu-css3-jquery-demo.html[^] in the third division i cannot see anything on the output window.
Can somebody help me where i might be wrong?
推荐答案
这是由于cssheight
中的属性wrap
div
。
That is due to cssheight
property inwrap
div
.
#wrap {
height:100%;
width:500%;
overflow:hidden;
}
[更新OP后提到他/她想要把 ul
内部div id =三
]
我做过这个。
检查 - [问题]在div中放置一个菜单 [ ^ ]。
ul
里面的三
div正在位置:已修复
。所以,这就是问题。
我在小提琴中添加了一个新的CSS样式来解决这个问题。具体如下。
[Update After OP mentioned that he/she want to put the "ul
" inside div id="three"
]
I have done this.
Check - [Issue] Placing a menu in a div[^].
The "ul
" inside "three
" div was taking position: fixed
. So, that was the issue.
I have added one new CSS style in the fiddle to solve this. That is as follows.
ul.menu
{
position:relative;
}
这篇关于将菜单放在div中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!