You are here: Re: Conditional Comment Query « HTML « IT news, forums, messages
Re: Conditional Comment Query

Posted by Neredbojias on 10/26/07 01:59

Well bust mah britches and call me cheeky, on Thu, 25 Oct 2007 23:35:39
GMT KiwiBrian scribed:

> I am running XP SP2 on a Windows PC and running the following test
> code. It does not display the appropriate line of print when I run it
> under IE7. It behaves as expected when I run it under Firefox.
> Can anyone please explain this, and or advise where I am going wrong?
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
> <title>blah</title>
> <style type="text/css">
> <!--
> body {
> margin: 0;
> padding: 0;
> }
> -->
> </style>
> </head>
> <body>
> <!-- [if IE7]>
> <p style="font-size:24px; color:red">This is an IE test</p>
> <![endif]-->
> <![if !IE]>
> <p style="font-size:24px; color:red">This is a non-IE test</p>
> <![endif]>
> </body>
> </html>
>
> TIA
> Brian Tozer

It should be [if IE 7]. (You have no space.)

--
Neredbojias
Just a boogar in the proboscis of life.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация