是否有一个css属性,它什么也不会改变,而且我们可以在哪里存储信息? [英] Are there a css property that would change nothing and where we can store information?
本文介绍了是否有一个css属性,它什么也不会改变,而且我们可以在哪里存储信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有css属性不会改变什么吗?
Are there a css property that would change nothing?
在编写 scss
时,经常会出于测试目的而需要它,只是为了确保我正确创建了一个CSS选择器.例如,我很高兴拥有这样的 foo:"helloworld1";
,以后我就可以更改 foo
的值并检查值,以查看我的选择器确实达到了正确的元素.
I need this for testing purposes very often when writing scss
just to see that I created a css selector correctly. For instance, I would be glad to have something like this foo: "helloworld1";
and later on I would be able to change the value of the foo
and check the value in the developer tools to see that my selectors have indeed reached a correct element.
我考虑过使用 width:auto;
,但有时会指定宽度(例如 width:100px;
).
I thought about using the width: auto;
, but sometimes the width is specified (e.g. width: 100px;
).
推荐答案
查看全文