如何使背景图像适合ASP.NET中的显示 [英] How to make background image fit to the display in ASP.NET

查看:109
本文介绍了如何使背景图像适合ASP.NET中的显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使背景图像适合ASP.NET中的显示?它必须适合正在运行的所有其他显示器.

How do I make the background image fit to the display in ASP.NET ? It must fit all other displays where it is running.

推荐答案

您只能使背景图像适合浏览器窗口.您可以使用CSS样式进行此操作

You can only make a background image fit the browser window. You can do this with the css style

body
{
    background-img:url(myimage.jpg);
    background-size:cover;
}



如果您使用Google"css背景图片",则会发现很多其他有关如何使用它的信息.

编辑================

您也可以使用jquery进行此操作:

http://srobbin.com/blog/jquery-plugins/jquery-backstretch/ [ ^ ]



If you google "css background image", you''ll find a lot of other stuff about how to work with it.

EDIT =================

You can also do it with jquery:

http://srobbin.com/blog/jquery-plugins/jquery-backstretch/[^]


不确定您的标签SQL2005.这是关于它的html教程.可能对您有用.
http://www.quackit.com/html/codes/html_stretch_background_image.cfm [ ^ ]
Not sure about your tag SQL2005. Here is a html tutorial about it. May be useful for you.
http://www.quackit.com/html/codes/html_stretch_background_image.cfm[^]


这篇关于如何使背景图像适合ASP.NET中的显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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