English 中文(简体)
显示问题:在线和显示:24小时
原标题:problem in display:inline and display:inline-block
  • 时间:2010-01-03 11:19:27
  •  标签:
  • css

i 显示有问题:一线和显示:一栏和24. ......

最佳回答
问题回答

IE7 and below don t support inline-block. 但有简单的工作。 简言之,作为一线锁,是像一块块一样,但按行一致的一个要素,你只需要告诉独立实体,它是一个直线元素(IE idiossincracy)。 因此:

.el { display:inline-block; *display:inline; *zoom:1; }

你们有! 确实简单。 你们也可以使用有条件的评论,避免 star。 我个人使用保罗·爱尔兰的超声声明() 之后,我特别针对IE7和以下目标:

.el { display:inline-block; }
.lt-ie8 .el { display:inline; zoom:1; }

国际笔会的问题是,它不适当地支持“在线锁定”。 因此,为了补偿,你必须提出这一要素。 因此,必须用“质子:两者”清除浮构件的集装箱,除非每一件都是固定的大小,例如菜单连接。

我更喜欢把每个浏览器所支持的字塔比为每个浏览器撰写个人风格表。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签