你可以在<asp:Image控件中設一個函數,先取得客戶機的分辨率,然後根據這個分辨率返回不同的圖片的url就可以了.
解决方案 »
- 求代码意思谢谢了
- 关于数据库同步的问题,急,急,急。
- |zyciis|SQL数据库存在Session状态问题:已经根据网上的设置好了 现在生成的SessionID是一样的了,但取不到别一个应用程序的Session
- 表单被提交之后,记录插入成功,问题是每刷新一次表单,就增加一条相同记录,如何避免?
- 我想通过gridview的删除功能,通过视图删除表中的数据,但.....请前辈指点
- 请问弹出一个窗口,这个超级链接该怎样写呢?DataNavigateUrlFormatString
- 关于web table控件的不解,小弟菜鸟
- People.EditItemIndex = -1
- 新出炉的问题,不会也来看看:Session里面保存信息的性能问题
- 谁能告诉我为什么会出现以下错误信息!!
- 水晶报表有没有根据数据动态生成网格的功能?
- 如何使Web页面中的ListBox控件有Horizontal ScrollBar
Private Sub SetPicture() Dim desktopSize As Size '定义桌面大小的
Dim strPicFile As String ' 图片的路径和名称
desktopSize = System.Windows.Forms.SystemInformation.PrimaryMonitorSize '取得桌面的大小
Select Case desktopSize.Width
Case "640"
strPicFile = Application.StartupPath.ToString & "\main1.jpg"
Case "800"
strPicFile = Application.StartupPath.ToString & "\main2.jpg"
Case "1024"
strPicFile = Application.StartupPath.ToString & "\main3.jpg"
Case Else
strPicFile = Application.StartupPath.ToString & "\main3.jpg"
End Select Dim ctl As Control For Each ctl In Me.Controls
If TypeOf ctl Is MdiClient Then
ctl.BackgroundImage = Image.FromFile(strPicFile)
End If
Next
End Sub
if (screen.width == 640){/*Load code or page image for 640 x 480 */}
else if (screen.width <= 800){/*Load code or page image for 800 x 600 */}
else if (screen.width <= 848){/*Load code or page image for 848 x 480 */}
else if (screen.width <= 1024){/*Load code or page image for 1024 x 768 */}
else if (screen.width <= 1152){/*Load code or page image for 1152 x 846 */}
else if (screen.width <= 1200){/*Load code or page image for 1200 x 800 */}
else){/*Load code or page image for 1600 x 1200 */}
</script>
if (screen.width == 640){document.body.style.background = "imgurl";}
else if (screen.width <= 800){document.body.style.background = "imgurl";}
...