In CSS, you can do this:
在CSS中,您可以这样做:
input[type=submit] {
// properties
}
It's a very useful for styling form buttons.
它对于样式表单按钮非常有用。
How do you do the same thing in SASS?
你怎么在SASS做同样的事情?
2 个解决方案
#1
112
You can also nest it like this
你也可以像这样嵌套它
input
&[type="submit"]
....
&[type="search"]
....
#1
112
You can also nest it like this
你也可以像这样嵌套它
input
&[type="submit"]
....
&[type="search"]
....