10/10/2018, 09:44
Lỗi FF và IE không hiển thị giống nhau
Mình có đoạn web sau dùng CSS. (xem file ZIP đính kèm)
Tuy nhiên khi hiển thị trong Firefox thì ok, nhưng trong IE-6 thì bị lỗi không đúng vị trí.
Xem hình đính kèm (bên trái là OK, bên phải là lỗi)
Xin hỏi sửa ra sao để IE hiển thị đúng giống như FF?
Thanks.
-------------------
Chức năng upload file của ddth bị lỗi, nên mình up file ở link sau: (24 KB)
http://www.mediafire.com/?sharekey=1...4e75f6e8ebb871
Thanks.
Code:
<head> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <div class="prod_box"> <div class="top_prod_box"></div> <div class="center_prod_box"> <div class="product_title"><a href="details.html">Quả táo</a></div> <div class="product_img"><a href="details.html"><a href="details.html"><img src="images/apple.jpg" alt="" border="0" /></a></a></div> <div class="prod_price"><span class="price">5 $</span></div> </div> <div class="bottom_prod_box"></div> <div class="prod_details_tab"> <a href="http://www.free-css.com/" title="header=[Add to cart] body=[ ] fade=[on]"><img src="images/cart.gif" alt="" border="0" class="left_bt" /></a><a href="details.html" class="prod_details">Chi tiết</a> </div> </div>
Xem hình đính kèm (bên trái là OK, bên phải là lỗi)
Xin hỏi sửa ra sao để IE hiển thị đúng giống như FF?
Thanks.
-------------------
Chức năng upload file của ddth bị lỗi, nên mình up file ở link sau: (24 KB)
http://www.mediafire.com/?sharekey=1...4e75f6e8ebb871
Thanks.
Bài liên quan
Mình thấy mấy cái code như là: á hoặc nếu không cần thiết đừng dùng tới ... mỗi browser sẽ ra khác nhau!
Đây là nội dung file style.css
*{
margin:0;
padding:0}
để reset CSS nhé
bác thử thay 2 cái css cuối thành thế này xem .
float:left;
margin-top: 7px;
margin-left:5px;
}
a.prod_details{
float:left;
background:url(images/square-blue-add.gif) no-repeat left;
text-decoration:none;
color:#0fa0dd;
margin-top: 7px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 80px;
padding-left:20px;
}
Thanks bạn nhiều.