English 中文(简体)
面向目标的核心要素
原标题:Object oriented CSS
最佳回答
问题回答

This is more of a "name dropping", that an actual method. The code that you have shown is often derogatory called "enterprise css", there is no excuse for it.

更有甚者,在要素上开设多个班实际上损害了业绩。

I advice you to adhere to Mozilla s guidelines when making your CSS, which works same for other browsers, too. And make dedicated .css file with hacks for IE6, 7 and 8.

想法是,你在许多方面重复使用相同的课程。 这两条都节省了书写和保存剪辑。 而不是界定<条码>。 登上<代码>但顿,其中界定了婚礼,size,background,color ,line-h8,000,font-size,font- Household and font-rights。 而对于不同的纽芬兰文风格,如修改<代码>color或font-size,则有些真正小的班级。

a 适当的oo项目,我经常使用:

但是,如果你看不出,那么就很容易将同样的财产改用在多个要素上,并附上适当的类别名称。

“以目标为导向的中央支助事务”实际上只是一种设计模式,用于如何从最远的中央支助事务中获取信息,基本上是同一种做法,即Jonathan Snooks打

无论你称之为OOCSS还是SMACSS,这种做法的关键是,你创建诸如等通用标准要素。 然后,可以通过在元件和(或)集装箱元件中增加课外课,以更具体的特点加强这些元件。 或者,作为一种替代办法,你可以采用身份识别要素或语义课来补充自己的习俗、社会、文化权利委员会规则。

进一步读:





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

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

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 ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签