User generated custom css

前端 未结 4 2031
忘掉有多难
忘掉有多难 2021-01-06 21:36

Hey, anyone have any idea what the best way to allow users to save custom css would be? Specifically, there are about 4 color values that I would like to allow a user to ch

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-06 22:16

    I would save the 4 values in the database and then create a css file from those values. You would want to make sure and cache the created css file for each user so you don't have to dynamically create it each page view.

提交回复
热议问题