内联块:事情真的很糟糕吗? [英] inline-block: Are things really this bad?

查看:54
本文介绍了内联块:事情真的很糟糕吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么建议吗?我想要一系列复合块。 (例如图像

和表示产品类别的标题)将文本换成

浏览器的范围更宽/更窄。表格不适用于这个

应用程序。任何固定的列号选择总是错误的

选择!


我查了一下CSS块流,找到了display:inline-block; ;并且

认为问题解决了 - 直到我在IE& FF。恶梦!!!

*很多*摆弄后,我已经管理了一些似乎工作的代码。在FF&中坚固地支付
IE浏览器。 (例如,在 http://mtoto.org/bits/flow-test。 HTML)。 - 但它

没有验证''因为我必须放一个< div>在< span>内!明天我

可能会尝试使用< li>代替外部< span>看看

是否至少避免了div-inside-span hack。


必须有一种更简单的方法来内联任意块!如果您知道

请告诉我。

Any suggestions? I want a sequence of composite "blocks" (e.g. image
and caption representing a product category) to wrap like text as a
browser is made wider/narrower. Tables are not working well for this
application. Any fixed choice of column numbers is always the wrong
choice!

I looked up about CSS block flow , found "display:inline-block;" and
thought problem solved - till I tested in IE & FF. Nightmare!!! After
*much* fiddling I have managed some code that seems to "work" robustly
in FF & IE. (example at http://mtoto.org/bits/flow-test.html). - But it
doesnt validate ''cos I had to put a <div> inside a <span>! Tomorrow I
might try using <li> in place of the outer <span> to see if that at
least avoids the div-inside-span hack.

There must be an easier way to "in-line" arbitrary blocks! If you know
it please tell me.

推荐答案

" otto" < IC ***** @ verycool.co.uk>写道:
"otto" <ic*****@verycool.co.uk> wrote:
任何建议?我想要一系列复合块。 (例如图像
和表示产品类别的标题)将文本换成更宽/更窄的文本。
Any suggestions? I want a sequence of composite "blocks" (e.g. image
and caption representing a product category) to wrap like text as a
browser is made wider/narrower.



http://www.spartanicus.utvinternet.i...h_captions.htm


-

Spartanicus



http://www.spartanicus.utvinternet.i...h_captions.htm

--
Spartanicus


文章

< u2 *** *****************************@news.spartanic us.utvinternet.ie>,

Spartanicus< ;在***** @ invalid.invalid>写道:


[...]
In article
<u2********************************@news.spartanic us.utvinternet.ie>,
Spartanicus <in*****@invalid.invalid> wrote:

[...]
http://www.spartanicus.utvinternet.i...h_captions.htm




2评论:


- 是的,iCab 3支持内联块


- 是什么让你觉得iCab与KHTML有什么关系? iCab有它自己的渲染引擎




这很奇怪。您的网站是我今天看到的第二个网站,说iCab是基于KHTML的
。 < HTTP://www.publish.com/article2/0,1895,1881400,00.asp>另一个是
。我想知道它来自哪里。由于

,他们两人在或多或少同时通过Acid2会产生一些混乱?


-

Sander Tekelenburg ,< http://www.euronet.nl/%7Etekelenb/>



2 comments:

- Yes, iCab 3 supports inline-block

- What makes you think iCab has anything to do with KHTML? iCab has its
very own rendering engine.

This is weird. Your site is the second I see today that says iCab is
KHTML based. <http://www.publish.com/article2/0,1895,1881400,00.asp> is
the other one. I wonder where that comes from. Some confusion due to
both of them passing Acid2 at more or less the same moment perhaps?

--
Sander Tekelenburg, <http://www.euronet.nl/%7Etekelenb/>


Sander Tekelenburg< us ** @ domain.invalid>写道:
Sander Tekelenburg <us**@domain.invalid> wrote:
- 是什么让你觉得iCab与KHTML有什么关系? iCab有自己的渲染引擎。
- What makes you think iCab has anything to do with KHTML? iCab has its
very own rendering engine.




奇怪的错误,我知道。


- < br $>
Spartanicus



Odd mistake, I knew that.

--
Spartanicus


这篇关于内联块:事情真的很糟糕吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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