顶级菜单无法正常显示

编程入门 行业动态 更新时间:2024-10-26 09:26:36
本文介绍了顶级菜单无法正常显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好我的问题是我有一个包含多个菜单项的顶级菜单栏,但是当我添加页脚菜单时,顶部菜单全部压缩并且某些项目未显示在其上。被告知要尝试为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?可以使用以下解决方案: 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
What I have tried: Do not know css and was told to assign a class to the css but not sure how to do it. Tried looking on Google but was not able to find anything that worked that I tried adding to fix the top menu. Everything I found and added did no fix it. Any suggestions would be awesome thanks in advance.

解决方案

Do not know CSS? A solution to that is available: CSS Tutorial[^] Some of your above looks like CSS classes - but it's just floating on your page in an incorrect location without any tags to define what it is. Definitely look at above tutorial - you'll need to sooner or later.

更多推荐

顶级菜单无法正常显示

本文发布于:2023-11-08 08:03:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1568812.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:正常显示   菜单

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!