English 中文(简体)
无固定的班轮车总是较好的。
原标题:Unitless line-heights is always better .. as eric meyer recommends
  • 时间:2010-03-10 20:17:00
  •  标签:
  • css

That’s a pretty major difference. This is why it’s always strongly recommended that you use unitless numbers if you’re going to set a line-height on something like the html or body elements, or indeed on any element that is going to have descendant elements.

因此,我现在将遵循这一建议。 但是,是否有必要这样做?

最佳回答

但是,是否有必要这样做?

我看不到。 他描述的行为:

因此,差别是什么? 当你确定一个同1em一样的团结价值时,你会把事情推向任何后代。 例如,在包含以下标记碎块的文件上适用了以下标准:

通常是你们想要的。 除固定<代码>在线-h 8s 实现某种效果的某些类型非常专门设计外,可能有一些例外。 但这是罕见的,在你看到时,你会赞扬他们。

问题回答

暂无回答




相关问题
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: ...

热门标签