Mar*_*in3 7 css performance css-grid
有一个包含许多小行和列的网格,如下所示:
项目将被放置在其中,例如:
网格是用类似的东西创建的:
grid-template-rows: repeat(auto-fill, 10px);
grid-template-columns: repeat(auto-fill, 10px);
Run Code Online (Sandbox Code Playgroud)
问题
repeat(auto-fill, 10px)?也许应该使用百分比来代替 ( repeat(auto-fill, 1%)),或者用什么来代替auto-fill?或者最好通过 JavaScript 执行此操作(高度到容器,左/上到项目)?