|
 |
|
สอบถาม conditionals comment for ie ไม่ทำงานเลยน่ะคะ |
|
 |
|
|
 |
 |
|
อันนี้เป็นโค๊ดของไฟล์ header.php ที่ทุกหน้าจะมีการ indlude ไฟล์นี้เพื่อ กำหนดการเรียกใช้งานไฟล์ css
Code (PHP)
<!DOCTYPE html>
<?PHP
/**
*
*
*
*/
include("php/header_content.php");
?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<? echo $description = stripslashes(str_replace(array('\r\n', '<br>'), array(' ',' '), ($description))); ?>"/>
<meta name="keywords" content="<? echo $keywords = stripslashes(str_replace(array('\r\n', '<br>'), array(' ',' '), ($keywords)));?>"/>
<?php echo "<title>".(isset($title)?$title:"Default title")."</title>\n";?>
<!--[if IE]><link href="css/styleieol.css" rel="stylesheet" type="text/css" /><![endif]-->
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/modal.css" rel="stylesheet" type="text/css"/>
<link href="css/buttons.css" rel="stylesheet" type="text/css"/>
<link href="css/nyroModal.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="js/js.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.1.custom.min.js"></script>
<script src="js/jquery.modal.js" type="text/javascript"></script>
<script src="js/jquery.nyroModal-1.6.2.min.js" type="text/javascript"></script>
<script src="js/jquery-lander.js" type="text/javascript"></script>
<script type="text/javascript" src="js/cont_form.js"></script>
<script type="text/javascript" src="js/voting.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/jQuery Cycle.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
var cookieText = "<?PHP echo md5($ip)?>";
var cookiePrefix = "";
var myPage = location.href;
var cookieName = cookiePrefix + "iphash";
function cookieSet() {
if (document.cookie != document.cookie) {
index = document.cookie.indexOf(cookieName);
} else {
index = -1;
}
if (index == -1) {
document.cookie=cookieName+"="+cookieText+"; ";
}
}
//-->
</script>
</head>
<body>
โดยในไฟล์ header.php นี้ หนูก็ได้ comment ie ไปแล้วคือ
Code
<!--[if IE]><link href="css/styleieol.css" rel="stylesheet" type="text/css" /><![endif]-->
แต่พอหนูแก้ไขไฟล์ css/styleieol.css แล้วลอง refresh page ใน ie หน้าเว็บเพจก็ไม่เห็นเปลี่ยนแปลงตามเลยค่ะ โดยหน้าเพจที่เปิดใน
ie ยังเป็นของ style.css อยู่เลยค่ะ หนูทำตรงไหนผิดช่วยแนะนำหน่อยนะคะ
แต่พอหนูทำการลบบรรทัดนี้คือ
<link href="css/style.css" rel="stylesheet" type="text/css" />
ออกจาก ไฟล์ header.php
ie ก็ไปอ้างอิง css จาก css/styleieol.css ที่ comment ไว้เลยค่ะ
แต่พอไปเปิดใน chrome , firefox ก็ไม่มี css เลยค่ะ มั่วหมดเลย
คือหนูอยากให้ comment ie ได้คะ ช่วยหนูด้วยนะค๊ะ
Tag : PHP, HTML/CSS

|
ประวัติการแก้ไข 2012-07-29 17:33:01 2012-07-29 17:41:04
|
 |
 |
 |
 |
Date :
2012-07-29 17:25:45 |
By :
dferru |
View :
947 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แล้ว ie ที่ทำจะมีปัญหากับพวก version ของ ie หรือเปล่าครับ
|
 |
 |
 |
 |
Date :
2012-07-29 18:36:18 |
By :
jumloon2005 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไม่น่าจะมีค่ะ เพราะว่า if ie ไม่ได้บอก version ไว้ คือรวมทุกเวอร์ชั่นน่ะคะ
|
 |
 |
 |
 |
Date :
2012-07-29 22:07:37 |
By :
dferru |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|