Loop through a list of unknown length in SASS

浪尽此生 提交于 2019-12-01 13:28:47

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/27216480/loop-through-a-list-of-unknown-length-in-sass

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!