Using C# to dynamically generate CSS files

前端 未结 4 787
暖寄归人
暖寄归人 2021-01-05 10:07

I have a site that gets deployed to over a dozen clients. The main website has a base template, and each client has a client folder that overrides the colours. The problem i

4条回答
  •  再見小時候
    2021-01-05 10:53

    Write it out as a file and let the browser pick it up as it would any other CSS file.

    Making inline stylesheets prevents the client cache mechanism, forcing your CSS to be served up with every page.

提交回复
热议问题