微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

html – 这种类型的CSS代码是什么?

参见英文答案 > css – css coding that I have never seen5个
这是网页中的HTML代码
<div class="3u">

...

</div>

它以这种方式用css设计:

.\33 u,.\33 u\24,.\33 u\28 1\29,.\33 u\24\28 1\29 { width: 25%; clear: none; }

任何人都可以解释一下这是什么?

我熟悉CSS但不是这种类型!

解决方法

从技术上讲,您无法使用数字启动CSS选择器.但是,您可以使用转义字符来解决它看起来像. Check this out.

Leading digits

If the first character of an identifier is numeric,you’ll need to
escape it based on its Unicode code point. For example,the code point
for the character 1 is U+0031,so you would escape it as \000031 or
\31 .

Basically,to escape any numeric character,just prefix it with \3 and append a space character ( ). Yay Unicode!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。