Loop through a list of unknown length in SASS

2019-02-21 06:45发布

I want to style a list of posts – I have seen a lot of great examples of that being done when the list is predefined

(list values are 1,2,3 – loop through and do something)

My question is: if it's possible to pick up a list length through SASS?

标签: sass frontend
1条回答
时光不老,我们不散
2楼-- · 2019-02-21 07:07

SASS doesn't add any functionality to CSS, it just makes some kinds of CSS simpler to write. If you can write it in CSS, it's possible with SASS. If not, it isn't.

查看更多
登录 后发表回答