当用户在控件上右击时会弹出快捷菜单。
When the user right-clicks on the control, the context menu pops up.
当实现快捷菜单控件的时候,我首先选择了上述的创建并显示一个弹出窗口。
While implementing this ContextMenu control, I first used the aforementioned technique and created and displayed a popup window.
按照我的测试,在弹出对像中包含快捷菜单改变了页面的元素树并影响查看源代码窗口,不能显示。
According to my tests, having the context menu in the popup object alters the page's tree of elements and this seems to have repercussions on the View Source window; it just doesn't show up.
应用推荐