我无法让导航栏滚动主要内容。以下是我的网站链接:http://www.nourishandinspireblog.com/nourishandinspire/请忽略标题,因为我还没有决定它的位置。
尝试这个
#nav ul ul {left: 9999px;position: absolute;}
#nav ul li:hover ul{left: 0;}
这可能对你有帮助http://jsfiddle.net/r8Ez4/
代码看起来像这个
#nav ul li{position: relative;}
#nav ul ul {left: 9999px;position: absolute;}
#nav ul li:hover ul{left: 0;}
忘记提及#nav ul li{position: relative;}
现在试试这个,这将为你工作
在#nav ul ul
中删除此代码#nav ul ul{display:none}
和top: 100%;