鼠标悬停在不同位置显示的弹出窗口 [英] popup shown in different place on mouseover

查看:60
本文介绍了鼠标悬停在不同位置显示的弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.........
我有一个在mouseover事件上显示弹出窗口的文本.....但是我需要这个弹出窗口来显示文本的左侧....但是在我的代码中,显示在表格顶部的弹出窗口....

任何人都可以通过合适的编码给我一个主意...

谢谢.....

Hi.........
I have a text which show popup on mouseover event.....But i need this popup to show left side of the text....but in my code the popup shown on top of the table....

can anyone give me a idea with suitable coding...

thanks.....

推荐答案

如果您使用的是AjaxToolKit ModalPopupExernder,
If you are using AjaxToolKit ModalPopupExernder,
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
         TargetControlID="rollover"
         PopupControlID="Panel1"
         BackgroundCssClass="modalBackground"
         DropShadow="true"
         OkControlID="OkButton"
         OnOkScript="onOk()"
         CancelControlID="CancelButton" />



那么您可以将弹出位置设置为:



then you can set the popup location as:

Sys.UI.DomElement.setLocation(


get('panel1'), location . x,位置 .y);
get(‘panel1’), location.x, location.y);


这篇关于鼠标悬停在不同位置显示的弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆