Lỗi theme trong IE6

Events happening in the community are now at Drupal community events on www.drupal.org.
cuxi's picture

Hi, all. Mình làm website drupal (5.x). Mình sử dụng một theme trong drupal cho website. Theme Abessive
http://drupal.org/project/abessive
Website mình đang làm :
http://timbandocthan.com/Dp5U_NFlash/
Trong firefox và IE7 thì trang web hoạt động tốt. Mình test thử IE6 thì bị lỗi nghiêm trọng : khi mình click một menu item khoản 3 lần thì trang web của mình trở thành màu trắng. Không hiện bất cứ thứ gì dù mình bấm refesh. mặt khác banner của mình bị tách menu một đoạn.
Mình đã hỏi người viết theme này nhưng hông có hồi âm gì.
Các bạn rành về theme fix giúp mình với.
Rất cần sự giúp đỡ của các bạn.

Comments

The theme has been tested on

hanzhong520's picture

The theme has been tested on Firefox 2 and 3, IE 7, Opera 9 and Safari 3 and works perfectly (as far as I know) in all of them.

tác giả đã ghi rất rõ. không có test trên IE6, nên bạn phải chấp nhận thôi :) trình duyệt đa dạng là nổi khổ của người phát triễn theme :(

Mình cũng biết vậy .

cuxi's picture

Mình cũng biết vậy . Nhưng khổ nổi người dùng mình biết dùng trình duyệt nào. Vấn đề là cần phải fix sao có thể chạy trên IE6. Các bạn rành về theme thì mới có thể sửa code ở page.tpl.php để fix được lỗi này. Ở đây có một vài code để fix IE6 mình đã thử nhưng vẫn không được. :
I've implemented this tweak on my development site however the left menu still behaves abnormally in IE6. Here is my theme's file listing...
block-footer.tpl.php
block-header.tpl.php
block.tpl.php
box.tpl.php
comment.tpl.php
CVS
fix-ie.css
logo.png
node.tpl.php
page.tpl.php
screenshot.png
style.css
template.php

I added the following to fix-ie.css

left {

width: 200px;
margin-left: -1260px;
padding: 0px 10px;
right: 230px;
}

and the top of page.tpl.php now looks like this:
"

<?php
print $head_title
?>

<?php
print $head
?>

<?php
print $styles
?>

<?php
print $scripts
?>

@import "

<?php
print base_path() . path_to_theme()
?>
/fix-ie.css";

<body

<?php
print phptemplate_body_class($sidebar_left, $sidebar_right);
?>
>"
Mong các bạn giúp mình với.

Tran Tan
Tel : 0905 403 723
http://baogame.vn/
http://Bienhoa.vn/

Sorry. Phía trên mình

cuxi's picture

Sorry. Phía trên mình post các code nó hiện chưa rõ mình post lại:
I've implemented this tweak on my development site however the left menu still behaves abnormally in IE6. Here is my theme's file listing...
block-footer.tpl.php
block-header.tpl.php
block.tpl.php
box.tpl.php
comment.tpl.php
CVS
fix-ie.css
logo.png
node.tpl.php
page.tpl.php
screenshot.png
style.css
template.php

I added the following to fix-ie.css

left {

width: 200px;
margin-left: -1260px;
padding: 0px 10px;
right: 230px;
}

and the top of page.tpl.php now looks like this:

/
<?php print $head_title >
<?php print $head >
<?php print $styles >
<?php print $scripts >
<?!--[if lt IE 7]>
<?style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() >/fix-ie.css";
<?![endif]-->
/

Nhưng ở đây người ta chỉ fix menu left( các dòng trên có thẻ ?trong php mình đã bỏ để cho các dòng hiện lên)
Cần sự giúp đỡ

Tran Tan
Tel : 0905 403 723
http://baogame.vn/
http://Bienhoa.vn/