简体   繁体   中英

Susy “static” container style

I know I can assign a global container-style value. But what I would like to know is if I can assign a static value for a given element.

For example:

.wrapper{
    @ include span-columns (10 static);
}

Is it possible?

Yes. See the Susy One docs - there is a $style argument, so you would use span-columns(10, $style: static) .

With Susy 2.0, you could use the shorter span(10 static) .

Kind of, yes. See this multiple containers demo . I think the container style should also be changeable in this way.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM