Is it bad practice to comment out single lines of CSS with //?

前端 未结 11 1732
梦如初夏
梦如初夏 2020-12-01 02:45

I have recently started using // to \"comment\" out single lines of CSS code. I understand that I am not actually commenting out the line; I am just breaking it

11条回答
  •  被撕碎了的回忆
    2020-12-01 03:01

    For inline CSS comments, I use:

    .myDiv {
        @width:750px;  
    }
    

    or any character you want (i.e. *@!ZZ) So, property becomes unknown and not readable by css.

提交回复
热议问题