HTML/CSS/IE Firefox/IE

Материал из Web эксперт
Перейти к: навигация, поиск

Bug fix for IE

   <source lang="html4strict">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> <head>

   <meta http-equiv="content-type" content="text/html; charset=utf-8" />
   <title></title>

<style type="text/css" media="Screen"> body {

   margin: 0;
   padding: 10px;

} </style>


</head> <body>

this is a test. this is a test. this is a test. this is a test.

</body> </html>

</source>
   
  


[if ie]

   <source lang="html4strict">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

                     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

   <head>
       <title>cursor</title>
       <style rel="stylesheet" type="text/css">

div {

   width: 50px;
   height: 50px;
   border: 1px solid rgb(234, 234, 234);
   margin: 5px;
   cursor: url("custom_cursor.png"), default;
   background: mistyrose;

}

       </style>
       
   </head>
   <body>
   </body>

</html>

</source>
   
  


[if lt IE 7]

   <source lang="html4strict">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

                     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

   <head>
       <title>Conditional Comments</title>
   </head>
   <body>
       
       
       
   </body>

</html>

</source>