2011-01-11 92 views
0
<asp:Label ID="Label1" runat="server" Text="Click Image Button"></asp:Label><br /> 
<asp:Label ID="Label2" runat="server" Text="See The Co-ordinates"></asp:Label> 
<br /> 
<asp:ImageButton ID="ImageButton1" runat="server" Height="100" Width="100" ImageUrl="~/DSC06427.jpg" onclick="ImageButton1_Click" /> 

在該兩個標籤的圖像上被添加,但仍圖像y座標的最大值爲100相反,它應是100+爲什麼ImageButton控件不顯示正確的座標值?

回答

0

其實座標採取相對於圖像角不根據頁面這就是爲什麼會發生這種情況。