📅  最后修改于: 2022-03-11 14:58:19.583000             🧑  作者: Mango
//avoid slides in slider stack on each other when position:absolute in responsive mode
//use 'vw'(automatically responsive) instead of 'px'(will stretch the elements when page responsive)
//each card width:
cards.forEach((card, index) => card.style.left = index * 90 + 'vw');