如何向内嵌CSS添加注释? [英] How to add comments to inline CSS?

查看:103
本文介绍了如何向内嵌CSS添加注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想注释掉一些CSS内置的内联样式(在一些html标签内)。我如何做到这一点?我使用CSS的/ * * /注释吗?或<! - - > for html?

I want to comment out some css style that is inline (inside some html tags). How do I do this? Do I use the /* */comments from CSS? Or <!-- --> for html?

<span class="color_dark" style="top:20px;font-size: 17px;line-height: 0px;position: relative;">onbezorgd genieten van uw<br> haard of kachel</span>

这是我所说的部分。

推荐答案

使用 / * * /

<span class="color_dark" style="top:20px; /*font-size: 17px;*/ line-height: 0px;position: relative;">onbezorgd genieten van uw<br> haard of kachel</span>

您可以看到,当在页面上禁用样式时,Google Chrome也会使用这些样式。

You can see that Google Chrome uses those too when disabling a style on a page.

这篇关于如何向内嵌CSS添加注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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