【发布时间】:2010-07-10 10:06:56
【问题描述】:
您(或您的公司)对文件名和 CSS 类名采用什么样的约定?例如,假设您有以下类名:window、window top、window top left、window top right。您如何命名这些类名(以及此类文件名)?
目前我正在做以下事情:
.window {
background: url(images/window.png);
}
.window-top {
background: url(images/window-top.png);
}
.window-top-left {
background: url(images/window-top-left.png);
}
还有哪些方法?
【问题讨论】:
标签: css naming-conventions coding-style