非必要的情况下,id和class的名称应尽量简短。 简要传达i或class是关于什么的。 通过这种方式,似的代码易懂且高效。
/* 不推荐 */ #navigation {} .atr {} /* 推荐 */ #nav {} .author {}