mohsen20121390
پنج شنبه 17 مهر 1393, 00:00 صبح
سلام دوستان
من یک دیو دارم که متاسفانه با IE8,9,10 درست کار نمیکنه، یعنی سمت راستش چند پیکسل خالی میمونه و من میخوام کل صفحه را داشته باشم، با اینکه عرض آن را ۱۰۰ درصد دادم ولی باز هم درست کار نمیکنه. لطفا اگه کسی میدونه کمک کنه
<html>
<head>
<style>
body{
overflow-x:hidden;
overflow-y:auto;
}
.myDiv{
background:#ccc;
height: 1200px;
width:100% !important;
margin:0 !important;
padding:0 auto;
top:0;
left:0;
position:absolute;
clear:both;
margin-right:0 auto;
}
</style>
</head>
<body>
<div class="myDiv">
</div>
</body>
</html>
من یک دیو دارم که متاسفانه با IE8,9,10 درست کار نمیکنه، یعنی سمت راستش چند پیکسل خالی میمونه و من میخوام کل صفحه را داشته باشم، با اینکه عرض آن را ۱۰۰ درصد دادم ولی باز هم درست کار نمیکنه. لطفا اگه کسی میدونه کمک کنه
<html>
<head>
<style>
body{
overflow-x:hidden;
overflow-y:auto;
}
.myDiv{
background:#ccc;
height: 1200px;
width:100% !important;
margin:0 !important;
padding:0 auto;
top:0;
left:0;
position:absolute;
clear:both;
margin-right:0 auto;
}
</style>
</head>
<body>
<div class="myDiv">
</div>
</body>
</html>