使IMG互相冲洗 [英] Placing IMG flush to each other

查看:102
本文介绍了使IMG互相冲洗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对某事感到好奇。


在同一个表格中我可以这样说:


< A HREF =" menu.pl" >< IMG SRC =" menu.jpg"宽度= QUOT; 95" height =" 35"

border =" 0">< / A>


< A HREF =" help.pl" >< IMG SRC =" help.jpg"宽度= QUOT; 95" height =" 35"

border =" 0">< / A>


并且out将两个图像刷新到每个其他(他们的双方是

同花顺)。


但是如果我添加一个< br>在两者之间,两张图片不是齐平的(顶部

和底部)。


有没有办法让它们在顶部和底部齐平? br />

哦,我的桌子边框和手机垫设置为0.


谢谢!


Daniel

解决方案

Daniel Kaplan写道:


在同一个表格中我可以这样说:

< A HREF =" menu.pl" >< IMG SRC =" menu.jpg"宽度= QUOT; 95" height =" 35"
border =" 0">< / A>
< A HREF =" help.pl" >< IMG SRC =" help.jpg"宽度= QUOT; 95" height =" 35"
border =" 0">< / A>

并且out将使两个图像相互冲洗(它们的边是
flush)。

但如果我添加一个< br>在两者之间,两个图像不是齐平的(顶部是
和底部)。

有没有办法让它们在顶部和底部齐平?



img {vertical-align:bottom; }


-

jmm(连字符)列表(at)sohnen-moe(点)com

(删除.AXSPAMGN电子邮件)


为了进一步教育人类,Daniel Kaplan < No **** @ NoSpam.com>

声明:

我对某事感到好奇。

相同的表格单元格我可以这样说:

< A HREF =" menu.pl" >< IMG SRC =" menu.jpg"宽度= QUOT; 95" height =" 35"
border =" 0">< / A>

< A HREF =" help.pl" >< IMG SRC =" help.jpg"宽度= QUOT; 95" height =" 35"
border =" 0">< / A>

并且out将两张图片相互冲洗(他们的身边
是齐声的。

但如果我添加一个< br>在两者之间,两个图像不是齐平的(顶部和底部)。

有没有办法让它们在顶部和底部齐平?




当然他们不是同花顺的 - 你在他们之间添加相当于

换行的html。删除< br> ;.


-

Neredbojias

无限可以有限制。


为了进一步教育人类,Daniel Kaplan < No **** @ NoSpam.com>

声明:

我对某事感到好奇。

相同的表格单元格我可以这样说:

< A HREF =" menu.pl" >< IMG SRC =" menu.jpg"宽度= QUOT; 95" height =" 35"
border =" 0">< / A>

< A HREF =" help.pl" >< IMG SRC =" help.jpg"宽度= QUOT; 95" height =" 35"
border =" 0">< / A>

并且out将两张图片相互冲洗(他们的身边
是齐声的。

但如果我添加一个< br>在两者之间,两个图像不是齐平的(顶部和底部)。

有没有办法让它们在顶部和底部齐平?

哦,我的桌子确实有边框和cellpadding设置为0.




哦,我猜你的意思是从上到下冲洗。这可能是一个白色空间

问题。谷歌的白色空间图像。


-

Neredbojias

无限可以有限制。


I was curious about something.

In the same table cell I can say this:

<A HREF="menu.pl" ><IMG SRC="menu.jpg" width="95" height="35"
border="0"></A>

<A HREF="help.pl" ><IMG SRC="help.jpg" width="95" height="35"
border="0"></A>

And the out will have the two images flush to each other (their sides are
flush).

But if I add a <br> in between the two, the two images are not flush (tops
and bottom).

Is there a way to make them flush top and bottom?

Oh, and my table does have borders and cellpadding set to 0.

Thanks ahead!

Daniel

解决方案

Daniel Kaplan wrote:


In the same table cell I can say this:

<A HREF="menu.pl" ><IMG SRC="menu.jpg" width="95" height="35"
border="0"></A>
<A HREF="help.pl" ><IMG SRC="help.jpg" width="95" height="35"
border="0"></A>

And the out will have the two images flush to each other (their sides are
flush).

But if I add a <br> in between the two, the two images are not flush (tops
and bottom).

Is there a way to make them flush top and bottom?


img { vertical-align:bottom; }

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


To further the education of mankind, "Daniel Kaplan" <No****@NoSpam.com>
declaimed:

I was curious about something.

In the same table cell I can say this:

<A HREF="menu.pl" ><IMG SRC="menu.jpg" width="95" height="35"
border="0"></A>

<A HREF="help.pl" ><IMG SRC="help.jpg" width="95" height="35"
border="0"></A>

And the out will have the two images flush to each other (their sides
are flush).

But if I add a <br> in between the two, the two images are not flush
(tops and bottom).

Is there a way to make them flush top and bottom?



Of course they''re not flush - you''re adding the html equivalent of a
linefeed between them. Remove the <br>.

--
Neredbojias
Infinity can have limits.


To further the education of mankind, "Daniel Kaplan" <No****@NoSpam.com>
declaimed:

I was curious about something.

In the same table cell I can say this:

<A HREF="menu.pl" ><IMG SRC="menu.jpg" width="95" height="35"
border="0"></A>

<A HREF="help.pl" ><IMG SRC="help.jpg" width="95" height="35"
border="0"></A>

And the out will have the two images flush to each other (their sides
are flush).

But if I add a <br> in between the two, the two images are not flush
(tops and bottom).

Is there a way to make them flush top and bottom?

Oh, and my table does have borders and cellpadding set to 0.



Oh, I assume you mean flush top-to-bottom. This is probably a white-space
issue. Google for "white-space images".

--
Neredbojias
Infinity can have limits.


这篇关于使IMG互相冲洗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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