html - target ie and non-ie not work? my ie version's ie10 -
here's code. when using ie, want show "please change browser!", , non-ie browsers can see other code. doesn't work in ie10 (ie 10 doesn't show h1 other code) what's wrong code?
<!doctype html> <html> <head> <meta charset="utf-8"> <title>sisu|swap</title> <link type="text/css" rel="stylesheet" href="1.css"> </head> <body> <!--[if ie]> <h1 style="color: white">please change browser!</h1> <![endif]--> <!--[if !ie]>--> <header> <img src="imgs/header.jpg" /> </header> <footer> </footer> </body> </html> <!--<![endif]-->
internet explorer 10 doesn't support conditional comments, see msdn page conditional comments.
important as of internet explorer 10, conditional comments no longer supported standards mode. use feature detection provide effective fallback strategies website features aren't supported browser. more info standards mode, see defining document compatibility.
Comments
Post a Comment