The problem is that when you hover on Hover Me 1 you need see dropdown menu near sidebar. On windows its working fine, but in iOS and OsX its dont work! I dont know how to get rid of this problem.. May be is there any solution preferably on CSS, but if not - I am ready for jQuery.. Please tell me something, I already have a headache from this problem :(
问题是当你将鼠标悬停在Hover Me 1上时,你需要看到侧边栏附近的下拉菜单。在Windows上它工作正常,但在iOS和OsX它不工作!我不知道如何摆脱这个问题..可能是有任何解决方案最好在CSS,但如果没有 - 我准备jQuery ..请告诉我一些事情,我已经从这个问题头痛:(
Here is JsFiddle DEMO
这是JsFiddle DEMO
2 个解决方案
#1
0
You will want to use position absolute on the sub menu and position relative on the parent li, something like this:
.main > li {
position:relative;
}
.main li:hover ul {
position: absolute;
left:300px;
top:0;
}
#2
0
You need to make your code responsive and you can do this by adding media tag in your css for different screen size ios screen size then modify your code according to ios screen size like this mockup see this DEMO