你好我的问题是我有一个包含多个菜单项的顶级菜单栏,但是当我添加页脚菜单时,顶部菜单全部压缩并且某些项目未显示在其上。被告知要尝试为CSS分配一个类来正确地拉出菜单,但不知道它们是什么意思。这里有任何建议代码 < title> body {width:100%;} ul {宽度:100%; list-style:none;} ul li {float:left;宽度:150像素; font-weight:bold;} ul li ul {padding:0;} ul li ul li {float:none;填充:5px 0; font-weight:normal;}
- 主页
- 关于我们
- Lorem Ipsum
- Lorem Ipsum
- Lorem Ipsum
- Lorem Ipsum
- 投资组合
- Lorem Ipsum
- Lorem Ipsum
- Lorem Ipsum
- Lorem Ipsum
- 客户
- 活动
- Lorem Ipsum
- Lorem Ipsum
- Lorem Ipsum
- 媒体
- Lorem Ipsum
- Lorem Ipsum
- Lorem Ipsum
- ILorem Ipsum
- 联系我们
不知道CSS?可以使用以下解决方案: CSS教程 [ ^ ] 上面的一些看起来像CSS类 - 但它只是漂浮在你的页面上不正确的位置,没有任何标签来定义它是什么。 绝对看看上面的教程 - 你需要迟早。结果
Hello the question I have is I have a top menu bar with several menu items but when I added the footer menu the top menu gets all squished and some items are not being shown, on it. was told to try assigning a class to the CSS to stretch the menu back out correctly but no idea what they mean.Any suggestions here's the code <title> body{width:100%;} ul {width:100%; list-style:none;} ul li {float:left; width:150px; font-weight:bold;} ul li ul {padding:0;} ul li ul li {float:none; padding:5px 0; font-weight:normal;}
- Home
- About Us
- Lorem Ipsum
- Lorem Ipsum
- Lorem Ipsum
- Lorem Ipsum
- Portfolio
- Lorem Ipsum
- Lorem Ipsum
- Lorem Ipsum
- Lorem Ipsum
- Clients
- Events
- Lorem Ipsum
- Lorem Ipsum
- Lorem Ipsum
- Media
- Lorem Ipsum
- Lorem Ipsum
- Lorem Ipsum
- ILorem Ipsum
- Contact Us
更多推荐
顶级菜单无法正常显示
发布评论