在CSS ids或类使用camelCase确定还是不? [英] Is using camelCase in CSS ids or classes ok or not?

查看:218
本文介绍了在CSS ids或类使用camelCase确定还是不?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题在标题中。我习惯在开发中使用camelcase,由于有交叉与设计,想知道是否有任何技术原因(不管意见),反对在HTML中使用它。感谢您的回复。

Question is in the title. I'm used to using camelcase in development and, since there are crossovers with design, was wondering if there are any technical reasons (regardless of opinions) against using it in HTML. Thanks in advance for your replies.

推荐答案

技术上,没有技术问题。做你喜欢的事。

Technically, no, there are no technical issues. Do what you like.

尝试遵循一个好的风格指南, like this one

Do try to follow a good style-guide though, like this one.

这篇关于在CSS ids或类使用camelCase确定还是不?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆