How to write specific CSS for mozilla, chrome and IE
问题 What would be the CSS conditional statement you can use to include specific CSS for IE, Mozilla, Chrome. If IE #container { top: 5px; } If Mozilla #container { top: 7px; } If Chrome #container { top: 9px; } What would be the respective 'If's' ? 回答1: For that You can scan user Agent and find out which browser, its version. Including the OS for OS specific styles You can use various CSS Hacks for specific browser Or Scripts or Plugins to indentify the browser and apply various classes to the