1

I've noticed when checking my site across multiple devices, the colour yellow on the desktop looks orange on another device.

Is there a conversion standard or technique, script or method to convert some colours, or add a filter or any other hack or work around to change the colour across a website depending on device to more closely match particular colours?

4

1 回答 1

0

您可以使用用户代理来检测正在使用的设备/浏览器,并根据需要应用不同的 css 或通过 javascript 等进行修改。

这是一个在javascript中动态加载css文件的链接:

http://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml

编辑:这将假设您知道哪些设备/浏览器显示颜色不正确

于 2012-05-31T08:20:53.070 回答