插入图像使其不会在不同尺寸的显示器上移动? [英] Inserting an image so it won't move on different size monitors?

查看:71
本文介绍了插入图像使其不会在不同尺寸的显示器上移动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将图片插入我的网站。在更改浏览器窗口大小甚至监视器大小时,我不希望图像移动,我希望它保留在特定页面的中间。我见过很多网站没有问题。每次尝试时,即使我使用绝对定位,它似乎总是向左或向右滑动。我正在使用Dreamweaver cs3套件软件。我确信这个问题有一个简单的解决办法,但我有一个令人难以置信的时间搞清楚它。任何帮助将不胜感激。谢谢。


这是我的代码,我需要输入什么?


展开 < span class =codeDivider> | 选择 | Wrap | Line数字

解决方案

在使用绝对定位时,是否设置了图像的CSS顶部和左侧?

除非它出现在你的CSS中,否则我看不出你将图像置于绝对位置的位置。


试试这个:

展开 | 选择 | Wrap | 行号


所以如果我想要的话两个图像在页面中居中?我是否还必须使用左右间隔?


I am trying to insert an image into my website. I don''t want the image to move when changing the browser window size or even a monitor size, I want it to remain in the middle of a specific page. I have seen many websites do this with no problem. Every time I try it, even if I use absolute positioning, it seems to always slide around to the left or to the right. I am using Dreamweaver cs3 suite software. I am sure there are a simple fix to this problem, but I am having a mind boggling time figuring it out. Any help would be greatly appreciated. Thank You.

here is my code, what do I need to input?



Expand|Select|Wrap|Line Numbers

解决方案

Are you setting the CSS ''top'' and ''left'' of the image when you use absolute positioning?


Unless it''s in your CSS, I don''t see where you''ve set your image(s) to absolute positioning.

Try this:

Expand|Select|Wrap|Line Numbers


so what If I wanted two images to be centered within the page? Would I also have to use the left and right intervals as well?


这篇关于插入图像使其不会在不同尺寸的显示器上移动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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