pary_daryayi
دوشنبه 31 تیر 1392, 12:15 عصر
سلام دوستان . یه کد ساده ی html5 نوشتم . تو firefox و کروم درسته اما در ie8 اصلا هیچ کدوم از تقسیم بندی ها و رنگ ها رو نشون نمیده . ممنون میشم بگید مشکل چیه ؟
کد html:
<div class="wrapper">
<header class="top-header">
<figure class="logo">
<h1>my web</h1>
</figure>
</header><!--.top-header-->
<header class="main-header">
<nav class="main-nav"><!-- for navigation menus --></nav><!--.main-nav-->
</header><!-- .main-header-->
<section class="about">
</section><!--about-->
</div><!--.wrapper-->
کد css:
* {
margin: 0;
padding: 0;
}
header, footer, section, aside, nav, article {
display: block;
}
body {
background: #000;
font-family: tahoma;
font-size: 12px;
}
.wrapper{
width:600px;
margin:auto;
margin-top:20px;
}
.top-header{
background-color:#009900;
height:100px;
}
.logo{
text-align:center;
}
.main-header{
background-color:#FF9933;
height:50px;
margin-top:10px;
}
.about{
min-height:300px;
background-color:#CCCCCC;
}
تشکــــــــــــــــــــــ ر
کد html:
<div class="wrapper">
<header class="top-header">
<figure class="logo">
<h1>my web</h1>
</figure>
</header><!--.top-header-->
<header class="main-header">
<nav class="main-nav"><!-- for navigation menus --></nav><!--.main-nav-->
</header><!-- .main-header-->
<section class="about">
</section><!--about-->
</div><!--.wrapper-->
کد css:
* {
margin: 0;
padding: 0;
}
header, footer, section, aside, nav, article {
display: block;
}
body {
background: #000;
font-family: tahoma;
font-size: 12px;
}
.wrapper{
width:600px;
margin:auto;
margin-top:20px;
}
.top-header{
background-color:#009900;
height:100px;
}
.logo{
text-align:center;
}
.main-header{
background-color:#FF9933;
height:50px;
margin-top:10px;
}
.about{
min-height:300px;
background-color:#CCCCCC;
}
تشکــــــــــــــــــــــ ر