如何自动调整横幅图像的宽度? [英] How to autoadjust width of a banner image ?

查看:134
本文介绍了如何自动调整横幅图像的宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我想要一个水平横幅,自动调整它的宽度为页面宽度的100%。所以,我把图像横幅切成了

三部分,但是没有找到办法做中间的自动调整。

用这个中间图像来解释可以横向缩放,而不是

关于方面的问题。


这是我的带有虚拟横幅的测试页:

http://yohannl.tripod.com/autoadjust_banner/banner.html


如您所见,此处横幅具有固定宽度。如何做中间

部分自动调整其宽度。通过表格,javascript,否则...我

我不知道...


请你们有人知道该怎么做吗?

Hello. I would like to have an horizontal banner which autoadjust its
width to 100% of the page width. So, I''ve sliced the image banner in
three parts, but don''t find a way to do the middle one autoadjust.
Knbowing that this middle image can be horizontally distorded without
problem about aspect.

Here is my test page with a dummy banner :

http://yohannl.tripod.com/autoadjust_banner/banner.html

As you can see, here, the banner has a fixed width. How to do the middle
part autoadjust its width. Going through table, javascript, else... I
don''t know...

Please, does anyone of you know how to do ?

推荐答案

" Yohann L." < yo ***** @ invalid.onewrote in message

news:MP ************************ @ news.tiscali.fr ...
"Yohann L." <yo*****@invalid.onewrote in message
news:MP************************@news.tiscali.fr...

这是我的测试页面,上面有一个虚拟横幅:

http://yohannl.tripod.com/autoadjust_banner/banner.html

如您所见,此处横幅具有固定宽度。
Here is my test page with a dummy banner :

http://yohannl.tripod.com/autoadjust_banner/banner.html

As you can see, here, the banner has a fixed width.



什么横幅?我只看到一堆广告。


哦,你的意思是带位#的彩色位。


如果这是你的主持人到你的网站然后我会紧急看看

给另一位主持人。


摆脱广告然后我可以看一下。


-

Richard。

What banner? All I see is a bunch of ads.

Oh, you mean the coloured bit with the bit #.

If this is what your host does to your website then I would urgently look
for another host.

Get rid of the ads and then I may look at it.

--
Richard.


2007年12月5日星期三12:01:17 +0100, Yohann L.< yo ***** @ invalid.onewrote:
On Wed, 05 Dec 2007 12:01:17 +0100, Yohann L. <yo*****@invalid.onewrote:

你好。我想要一个水平横幅,自动调整它的宽度为页面宽度的100%。所以,我把图像横幅切成了

三部分,但是没有找到办法做中间的自动调整。

用这个中间图像来解释可以横向缩放,而不是

关于方面的问题。


这是我的带有虚拟横幅的测试页:

http://yohannl.tripod.com/autoadjust_banner/banner.html


如您所见,此处横幅具有固定宽度。如何做中间

部分自动调整其宽度。通过表格,javascript,否则...我

我不知道...


请你们有人知道该怎么做吗?
Hello. I would like to have an horizontal banner which autoadjust its
width to 100% of the page width. So, I''ve sliced the image banner in
three parts, but don''t find a way to do the middle one autoadjust.
Knbowing that this middle image can be horizontally distorded without
problem about aspect.

Here is my test page with a dummy banner :

http://yohannl.tripod.com/autoadjust_banner/banner.html

As you can see, here, the banner has a fixed width. How to do the middle
part autoadjust its width. Going through table, javascript, else... I
don''t know...

Please, does anyone of you know how to do ?



左右浮动固定大小的图像,在包含div的中间部分设置重复-x背景

,或者只是块级div /元素

左边和右边的边距恰好等于图像的宽度。

http://rwasmus.nl/banner/


你可能想设置一个最小宽度,如正确的图像会落在屏幕下面的

''横幅'以下,然后是图像的总宽度。

-

Rik Wasmus

Float the fixed size images left and right, set a repeat-x background of
the middle portion on a containing div, or just a block level div/element
with margins left and right exactly equal to the width of the images.

http://rwasmus.nl/banner/

You might want to set a min-width, as the right image would drop below the
''banner'' on a screen narrower then the combined widths of the images.
--
Rik Wasmus


文章< D5 ****************** @ news-server.bigpond.net.au> ;,
rf@invalid.com 说...
In article <D5******************@news-server.bigpond.net.au>,
rf@invalid.com says...

什么旗帜?我只看到一堆广告。


哦,你的意思是带位#的彩色位。


如果这是你的主持人到你的网站然后我会紧急看看

给另一位主持人。


摆脱广告然后我可以看一下。
What banner? All I see is a bunch of ads.

Oh, you mean the coloured bit with the bit #.

If this is what your host does to your website then I would urgently look
for another host.

Get rid of the ads and then I may look at it.



如我在第一篇文章中所述,此页面仅供测试。所以,我不是这个测试页面中的常规主持人和虚拟横幅。


从技术上讲,关于我的问题,你有吗?一个想法?

As indicating in my first post, this page is just for test. So, i''t not
my regular host and just a dummy banner in this test page.

And technically, about my question, do you have an idea ?


这篇关于如何自动调整横幅图像的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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