Different CSS for each browser?

前端 未结 3 1042
时光取名叫无心
时光取名叫无心 2020-11-29 08:33

Is there a way to load a different CSS file for a specific browser?

like (poor pseudo code):

if firefox


        
3条回答
  •  情歌与酒
    2020-11-29 09:27

    You can use conditional comments to target IE browsers. Look at this: http://css-tricks.com/how-to-create-an-ie-only-stylesheet/. To target firefox you can check this answer: https://stackoverflow.com/a/953491/1941910. But I think there's no need to target firefox, chrome or safari, they all do a good job applying CSS.

提交回复
热议问题