menu 相关问题

菜单是一种用户界面机制,为用户提供查看和执行应用程序操作的方法。 (通用;请尽可能使用平台和/或语言标签)

Android Studio 工具栏未显示

Android Studio 工具栏未显示 大家好, 我确信我在 Android Studio 中创建菜单的代码是正确的,并且也没有给出错误,但是当我运行我的项目时,人们...

回答 1 投票 0

滑动我们的菜单 - 使子菜单与父菜单处于同一级别

我正在创建滑出式多级菜单,但我不知道如何使子菜单滑块与父菜单处于同一级别。 当父项位于第二、第三和其他级别并且我正在打开子项时...

回答 2 投票 0

为项目添加右键菜单

我一直在寻找单个项目的简单右键菜单。例如,如果我右键单击一张图片,我想要一个小菜单来显示我自己的标签:添加、删除等。如果...

回答 5 投票 0

SwiftUI、macOS 菜单组件自定义

你知道如何从菜单组件中删除指示器吗? 我的最低操作系统版本是 11.0 菜单 { 按钮(操作:{ 更改语言(“ko”) }) { "Text(\"한국어...

回答 2 投票 0

如何删除菜单栏中“帮助”下出现的搜索选项

我是 OS X 开发新手..我可以看到帮助菜单项下方出现了一个搜索框。 我找不到删除它的方法,因为它没有显示在故事板中。 请帮忙。

回答 1 投票 0

菜单驱动程序无法运行

我正在尝试用 C 创建一个菜单驱动程序,但在完成一项功能后我无法返回菜单。我如何对其进行编程,以便程序在每次之后询问用户是否继续

回答 1 投票 0

菜单元素在进入页面时加粗,并在单击 WordPress 时加粗另一个菜单元素

我已经寻找答案很长时间了,但还没有找到好的解决方案。 当我进入网站时,我希望菜单项 DE 变粗,如果我单击 EN,我希望 DE 再次变细,然后...

回答 1 投票 0

Drupal 9:如何获取菜单项的翻译

我想要菜单项的翻译。当然,多语言模块已启用并且菜单具有适当的翻译。 我使用下面的代码,但它返回一个错误: $menu_na...

回答 1 投票 0

在 android Kotlin 中创建自定义工具栏

我正在尝试创建一个带有图像按钮的自定义工具栏,每个图像按钮都是一个菜单项。 演示图片: 如何将每个图像按钮连接为菜单项?

回答 2 投票 0

Flutter 如何取消选择下拉菜单中之前选择的项目

我有代码显示要选择的项目列表。它可以正确地让我输入并搜索项目。但是一旦我选择了该项目,有没有办法可以将其清除,就好像它是新的一样......

回答 1 投票 0

如何检测android中弹出菜单中的子菜单点击?

Android 中弹出菜单的子菜单点击监听问题

回答 1 投票 0

菜单溢出-y:滚动但隐藏子菜单

我试图通过放置溢出-y:滚动来设置最大高度菜单,但我注意到左侧子菜单被隐藏。我无法掌握如何滚动 Y 值并授权 X 值的技巧。 她...

回答 2 投票 0

使用 python-telegram-bot 构建菜单的正确方法

我使用 python-telegram-bot 并尝试像 BotFather bot 那样构建一个嵌套菜单系统。例如,您有一个通用机器人菜单 您可以在其中选择“编辑机器人”并获取新的通讯...

回答 4 投票 0

如何在SAP B1 10.0中扩展用户定义的表?

我正在尝试更改 SAP 系统装箱单菜单中的选择表,但我不知道该怎么做。我的同事无限期外出,创建了一张包装材料表...

回答 1 投票 0

尽管设置了“currentIndex”,Flutter BottomNavigationBar 永远不会更改突出显示的选项

我一定在这里度过了一段金发时光;我想做的事情很简单,但我无法弄清楚。 我有一个 BottomNavigationBar,它可以很好地导航到不同的页面,但是机器人......

回答 1 投票 0

菜单不能放在中间

这是一个 WordPress 网站和 Enfold 模板。如何使菜单透明并将其居中? 在模板设置中,有一个选项可以使标题透明,但是没有选项...

回答 1 投票 0

有什么方法可以设置我的大类别列表在标题二上显示为两列吗?

我有一个很长的类别列表,它几乎出现在主页中间的菜单下拉菜单中,这就是为什么我想将它们转换为两列,当单击菜单时,类别应该...

回答 1 投票 0

为什么 WordPress 网站上同时显示移动和桌面导航菜单?

使用 Elementor Pro 在 WP 网站(网站链接)上工作,我的问题是,在编辑页面和网站时,标题看起来不错,但在实时网站上,移动和桌面导航菜单都会显示...

回答 2 投票 0

恢复wordpress删除的菜单

我是 WordPress 新手 我有我的 WordPress 网站的数据库备份 我错误地删除了所有顶部菜单 我可以从数据库备份恢复吗,或者它存储在某些文件中 我...

回答 4 投票 0

将响应式导航栏中的链接与下拉菜单对齐,使其与网站内容对齐

我使用了在 w3schools.com 上找到的代码,并根据自己的喜好对其进行了样式设置,以创建我的网站顶部导航菜单: /* 在顶部添加背景颜色 </desc> <question vote="0"> <p>我使用了在 <a href="https://www.w3schools.com/howto/howto_js_responsive_navbar_dropdown.asp" rel="nofollow noreferrer">w3schools.com</a> 找到的代码,并根据自己的喜好对其进行了样式设置,以创建我的网站顶部导航菜单:</p> <p></p><div data-babel="false" data-lang="js" data-hide="false" data-console="true"> <div> <pre><code>&lt;!DOCTYPE html&gt; &lt;style&gt; /* Add a background color to the top navigation */ .topnav { background-color: #0066ff; overflow: hidden; } /* Style the links inside the navigation bar */ .topnav a { float: left; display: block; color: #f2f2f2; text-align: center; padding: 14px 16px; text-decoration: none; font-size: 17px; transition-duration: 0.4s; } /* Add an active class to highlight the current page */ .active { background-color: #4d94ff; color: white; } /* Hide the link that should open and close the topnav on small screens */ .topnav .icon { display: none; } /* Dropdown container - needed to position the dropdown content */ .dropdown { float: left; overflow: hidden; } /* Style the dropdown button to fit inside the topnav */ .dropdown .dropbtn { font-size: 17px; border: none; outline: none; color: white; padding: 14px 16px; background-color: inherit; font-family: inherit; margin: 0; transition-duration: 0.4s; } /* Style the dropdown content (hidden by default) */ .dropdown-content { display: none; position: absolute; background-color: #b3d1ff; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; } /* Style the links inside the dropdown */ .dropdown-content a { float: none; color: black; padding: 12px 16px; text-decoration: none; display: block; text-align: left; } /* Add a background on topnav links and the dropdown button on hover */ .topnav a:hover, .dropdown:hover .dropbtn { background-color: #99c2ff; color: white; } /* Add a background to dropdown links on hover */ .dropdown-content a:hover { background-color: #cce0ff; color: black; } /* Show the dropdown menu when the user moves the mouse over the dropdown button */ .dropdown:hover .dropdown-content { display: block; } /* */ .content { width: 1000px; margin: 0 auto; } .content h2 { margin: 0; padding: 25px 0; font-size: 20px; border-bottom: 1px solid #e0e0e3; color: #4a536e; } .content .block { box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1); margin: 25px 0; padding: 25px; background-color: #fff; } .content .block p { padding: 5px; margin: 0 0 10px 0; } /* When the screen is less than 1000 pixels wide, hide all links, except for the first one (&#34;Home&#34;). Show the link that contains should open and close the topnav (.icon) */ @media screen and (max-width: 1000px) { .topnav a:not(:first-child), .dropdown .dropbtn { display: none; } .topnav a.icon { float: right; display: block; } } /* The &#34;responsive&#34; class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */ @media screen and (max-width: 1000px) { .topnav.responsive {position: relative;} .topnav.responsive a.icon { position: absolute; right: 0; top: 0; } .topnav.responsive a { float: none; display: block; text-align: left; } .topnav.responsive .dropdown {float: none;} .topnav.responsive .dropdown-content {position: relative;} .topnav.responsive .dropdown .dropbtn { display: block; width: 100%; text-align: left; } @media screen and (max-width: 1000px) { .content { padding: 5px 10px; width: 100%; } } &lt;/style&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&#34;utf-8&#34;&gt; &lt;meta name=&#34;viewport&#34; content=&#34;width=device-width,minimum-scale=1&#34;&gt; &lt;title&gt;Home Page&lt;/title&gt; &lt;link rel=&#34;stylesheet&#34; href=&#34;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css&#34; integrity=&#34;sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A==&#34; crossorigin=&#34;anonymous&#34; referrerpolicy=&#34;no-referrer&#34;&gt; &lt;/head&gt; &lt;body&gt; &lt;div class=&#34;topnav&#34; id=&#34;myTopnav&#34;&gt; &lt;a href=&#34;../&#34; class=&#34;active&#34; title=&#34;Homepage&#34;&gt;&lt;i class=&#34;fas fa-home&#34;&gt;&lt;/i&gt; Home&lt;/a&gt; &lt;a href=&#34;/members/home.php&#34; title=&#34;Member&#39;s Homepage&#34;&gt;&lt;i class=&#34;fa-solid fa-door-open&#34;&gt;&lt;/i&gt; Member&#39;s Homepage&lt;/a&gt; &lt;div class=&#34;dropdown&#34;&gt; &lt;button class=&#34;dropbtn&#34; title=&#34;Sections&#34;&gt;&lt;i class=&#34;fa-solid fa-link&#34;&gt;&lt;/i&gt; Sections &lt;i class=&#34;fa fa-caret-down&#34;&gt;&lt;/i&gt; &lt;/button&gt; &lt;div class=&#34;dropdown-content&#34;&gt; &lt;a href=&#34;/members/music/&#34; title=&#34;Enjoy Our Music Section&#34;&gt;&lt;i class=&#34;fa-solid fa-music&#34;&gt;&lt;/i&gt; Music Section&lt;/a&gt; &lt;a href=&#34;/members/polls/&#34; title=&#34;Vote in A Poll&#34;&gt;&lt;i class=&#34;fa-solid fa-square-poll-horizontal&#34;&gt;&lt;/i&gt; Polls Section&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&#34;dropdown&#34;&gt; &lt;button class=&#34;dropbtn&#34; title=&#34;Help&#34;&gt;&lt;i class=&#34;fa-regular fa-circle-question&#34;&gt;&lt;/i&gt; Help &lt;i class=&#34;fa fa-caret-down&#34;&gt;&lt;/i&gt; &lt;/button&gt; &lt;div class=&#34;dropdown-content&#34;&gt; &lt;a href=&#34;/members/tickets/&#34; title=&#34;Create a Ticket For An Issue&#34;&gt;&lt;i class=&#34;fas fa-ticket&#34;&gt;&lt;/i&gt; Ticket System&lt;/a&gt; &lt;a href=&#34;contact/&#34; title=&#34;Send A Message to Site Administration&#34;&gt;&lt;i class=&#34;fas fa-envelope&#34;&gt;&lt;/i&gt; Contact Form&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;a href=&#34;profile.php&#34; title=&#34;Profile Page&#34;&gt;&lt;i class=&#34;fas fa-user-circle&#34;&gt;&lt;/i&gt; Profile&lt;/a&gt; &lt;a href=&#34;logout.php&#34; title=&#34;Bye Bye&#34;&gt;&lt;i class=&#34;fas fa-sign-out-alt&#34;&gt;&lt;/i&gt; Logout&lt;/a&gt; &lt;a href=&#34;javascript:void(0);&#34; class=&#34;icon&#34; onclick=&#34;myFunction()&#34;&gt;&amp;#9776;&lt;/a&gt; &lt;/div&gt; &lt;script&gt; function myFunction() { var x = document.getElementById(&#34;myTopnav&#34;); if (x.className === &#34;topnav&#34;) { x.className += &#34; responsive&#34;; } else { x.className = &#34;topnav&#34;; } } &lt;/script&gt; &lt;div class=&#34;content&#34;&gt; &lt;h2&gt;Member&#39;s Page&lt;/h2&gt; &lt;h2&gt;WELCOME TO THE MEMBERS ONLY SECTION!&lt;/h2&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> </div> </div> <p></p> <p>但是我不知道如何将导航菜单中的链接与网站内容对齐。导航菜单中的链接始终位于屏幕边缘(左侧)。我希望将左侧的链接与网站内容中文本的左侧对齐(但不要超过网站内容的最右侧部分)。我还想将网站的标题放在导航菜单中,位于链接之前的左侧,但使其与网站的其他内容保持一致。</p> <p>这个样式问题有简单的解决办法吗?</p> <p>感谢任何可以提供帮助的人。</p> </question> <answer tick="false" vote="0"> <p>具有“content”类的 div 的固定宽度为 1000px,只需在 css 中将其删除即可!</p> <pre><code>.content { /*removed the width of 1000px */ margin: 0 auto; /* added padding for making it better */ padding: 10px 20px; } </code></pre> </answer> </body></html>

回答 0 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.