.NET Mobile图象 |
|
| 作者:佚名 来源:本站整理 发布时间:2008-3-14 20:37:14 | |
|
.NET Mobile displays different types of images for different types of devices. The Image Control
|
<%@ Page Inherits= "System.Web.UI.MobileControls.MobilePage"%> <%@ Register TagPrefix="Mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
<Mobile:Form runat="server">
<Mobile:Image runat="server">
<DeviceSpecific>
<Choice ImageURL="image.gif" />
<Choice ImageURL="image.bmp" />
<Choice ImageURL="image.wbmp" />
</DeviceSpecific>
</Mobile:Image>
</Mobile:Form>
|
When this page is displayed on pocket PC, a GIF image will be displayed. On a cell phone a WBMP image or a BMP image will be displayed, according to the characteristics of the cell phone.
当这页在pocket PC显示时,会显示一幅GIF格式图像。在手机上会显示一幅WBMP 或BMP 格式的图像,这就要根据手机的特性而定了。
- 上一篇文章:.NET Mobile选择
- 下一篇文章:.NET Mobile效用
