类名中带有点 (.) 的样式元素 [英] Styling elements with a dot (.) in the class name

查看:22
本文介绍了类名中带有点 (.) 的样式元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我有一个这样的元素

Hay I have an element like this

<span class='a.b'>

很遗憾,这个类名来自电子商务应用程序,无法更改.

Unfortunately this class name comes from an eCommerce application and cannot be changed.

我可以用一个点来设置类名的样式吗?

Can I style a class name with a dot in it?

喜欢

.a.b { }

推荐答案

.a.b { }

然而,可能有浏览器不支持这一点.

However there could be browsers around that don't support this.

这篇关于类名中带有点 (.) 的样式元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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