在ASP.NET中在后台显示图像 [英] Display Images in Background in ASP.NET

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

问题描述

大家好,


我在Picasa中创建了一些照片的拼贴画(约20张照片).

现在,当我在ASP.NET页面中将此拼贴画用作背景时,仅以原始尺寸(即原始尺寸)而不是我创建的拼贴画中的缩小尺寸显示1张或2张照片.

我正在使用CSS在后台显示图像.


提前致谢

Mukund

Hello All,


I have a created a collage of some photos (of around 20 pics) in Picasa.

Now when I use this collage as a background in my ASP.NET page only 1 or 2 photos are getting displayed, in their original size, i.e, their original dimensions, not their reduced dimensions as in my created Collage.

I am using CSS to display the images in the background.


Many Thanks in Advance

Mukund

推荐答案

您可能具有 THIS [ ^ ]文章对于使用CSS在后台调整图像大小很有用.
You could have THIS[^] article to be useful for resizing image in background using CSS.


使用

Use

.bckimage {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}



其中

<img class="bckimage" src="images/bckimage.jpg" alt="" />


我希望它能起作用.:rose:



where

<img class="bckimage" src="images/bckimage.jpg" alt="" />


I hope it works.:rose:


Hi,
You can use background-image property in css and set it to your images that you want.


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

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