menu 相关问题

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

如何检测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

Blazor 的选项卡控制菜单

我需要实现一个选项卡控件菜单。在每个选项卡中,我需要渲染用户在应用程序菜单中单击的页面。用户单击的所有页面必须渲染在选项卡控件内,而不是初始化...

回答 1 投票 0

使用CSS伪类:first-child

尝试设置一个菜单,以便每个菜单项都有左边框,但边框被排除在第一个菜单项之外。 网站:http://www.rogersinternational.com CSS: #使用权 { 背景:#414731;

回答 4 投票 0

选择某个项目时关闭下拉菜单

我的网页 m1maths.com 有一个带有下拉菜单的导航栏。我希望在选择某个项目时关闭菜单,但他们没有。下面复制了导航栏代码的精简版本。我在那里...

回答 1 投票 0

HTML、CSS、菜单保持突出显示

我希望我的菜单在按下时保持突出显示。我怎么能这么做呢?我只是一个初学者 html 和 CSS 程序员,我不知道我该怎么做,我按照其他人所说的尝试过,但没有成功...

回答 2 投票 0

按钮不会更改显示数据和内容类别[关闭]

我在一个部分中制作了一个类似按钮的菜单,唯一的问题是单击按钮后数据类别不会改变。 JavaScript 代码有什么问题?我有一个类似的菜单

回答 1 投票 0

动态菜单未在 React 中显示

我正在尝试显示 Laravel 的动态菜单以做出反应。 我从 sidebarDataFetcher API 获取数据。 下面是我的 sideMenuSlice.ts。 sideMenuSlice 在从 th 获取数据之前设置...

回答 1 投票 0

使用 Bootstrap 5 的多级菜单导航栏

我在使用 bootstrap 5 时遇到了多级菜单的问题,这里我创建了一个多级菜单,但是当我运行它时,菜单不会出现在侧面,而是直接出现在上一个菜单的下面...

回答 1 投票 0

Javascript 有什么问题吗?

我在一个部分中制作了一个类似按钮的菜单,唯一的问题是单击按钮后数据类别不会改变。 JavaScript 出了什么问题?我有一个类似的菜单

回答 1 投票 0

SwiftUI:你能有一个带有复选标记和快捷方式的菜单项吗?

我正在使用 SwiftUI 编写一个 macOS 应用程序,具体来说,我正在向菜单栏添加一个菜单。菜单应该有一个可选择的项目——项目前面可以有一个可选的复选标记——和一个

回答 1 投票 0

如何创建列表模板enfold?

我正在使用wordpress创建网站,我有两个问题, 第一:我无法创建菜单“无法自定义下拉菜单”,保存菜单后它就会消失。 第二:我无法添加...

回答 1 投票 0

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