在CSS中,它做任何事情? [英] Period in CSS, does it do anything?

查看:79
本文介绍了在CSS中,它做任何事情?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理别人的代码,遇到这样的情况:

I'm dealing with someone else's code here and have come across something like this:

.selector {
 .background-position : 0px 2px;
}

周期行背景位置他们的方式评论排行?它似乎没有一个效果,我知道(使用chrome inspector和firefox检查器),但我想确保。

Does the period on the line background-position do anything or was that their way of commenting the line out? It doesn't seem to have an effect that I know of (using chrome inspector and firefox inspector) but I want to make sure.

感谢您对此有任何见解。

Thanks for any insight on this.

推荐答案

az快速评论的东西出来。但在生产CSS中,我删除这些行。

I usually use a z to quickly comment stuff out. But in the production CSS, I remove these lines.

这是一个注释。它使得CSS无效,虽然它看起来非常不专业,所以一个好主意,如果你不需要它,或者至少正确地注释它与完全删除它 / * ... * / 。

It's a "comment". It makes the CSS invalid though and it looks very unprofessional, so it's a good idea to remove it altogether if you don't need it, or at least properly comment it with /* ... */.

这篇关于在CSS中,它做任何事情?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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