我使用的是DotNetBar组件SuperTabControl,如果用户右键单击一个选项卡,我想显示上下文菜单,我发现了下面的代码,但问题是我的SuperTabControl没有GetTabRect函数。
if (e.Button == MouseButtons.Right)
{
for (int i = 0; i < this.superTabControl1.Tabs.Count; ++i)
{
Rectangle r = this.superTabCont
当用户单击页面上的任意位置时,我想关闭重新调整大小的菜单。我已经搜索了各种堆栈溢出的答案,但没有找到一个不会干扰菜单代码本身,我的菜单...
jQuery(document).ready(function($) {
//open-close submenu on mobile
$('.cd-main-nav').on('click', function(event) {
if ($(event.target).is('.cd-main-nav'))
$(this).children('ul').to