在浏览的一角始终显示图像 [英] show Image always in corner of browse

查看:87
本文介绍了在浏览的一角始终显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要了解我的问题,请访问http://www.nimbusitsolutions.com/并在该站点上提供给予反馈"和最热门优惠",以帮助我.

to understand my problem please see http://www.nimbusitsolutions.com/ in this site given "give feedback" and "Hottest Offer" are given plese help me.

推荐答案

他们正在使用CSS或样式来定位图像和链接.如果您要查看页面的源代码,则可以弄清楚他们在做什么.我的猜测是带有包含图像和链接的绝对定位元素的边栏.此链接 [
They''re using CSS or styles to position the images and links. If you were to view the source of the page you may be able to figure out what they are doing. My guess is a sidebar with an absolute positioned element containing the images and links. This link[^] will give you a selection of sites that discuss CSS layouts, etc.


您需要将以下CSS属性设置为要设置位置的元素:

将固定位置设置为:位置:固定"
设置较高的z索引:说"z-index:1000"
设置左/右和顶部位置:说"right:0px","bottom:15px";

因此,您可以创建一个Css类,如下所示:
You need to set the following CSS properties to the element you want to set position:

Set fixed position as : "position:fixed"
Set a high z index : Say, "z-index:1000"
Set left/right and top position : Say, "right:0px", "bottom:15px";

So, you can create a Css class as follows:
.cornerImage
{
   position:fixed;
   z-index:1000;
   right:0px;
   bottom:15px;
}



并且,按如下所示设置图像的css类:

< img class ="cornerImage" src =" id ="/>



And, set the css class of your image as follows:

<img class="cornerImage" src="" id="" />


这篇关于在浏览的一角始终显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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