position:fixed問題

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
以上標籤會影響IE8的一些HTML性質,
如CSS中的 position:fixed;
若沒有插入上述的標籤則會造成IE無法使用position:fixed;
但這個性質在FireFox是沒有影響的.
注意:
不能在header上方插入任何的註解, 否則就會完全不能使用.

<!– #include virtual=”inc/IZClsPage.asp” –>
<!– #include virtual=”inc/pageclass.asp”–>
<!– #include virtual=”webclass.asp”–>
<!–  test –>
<!– #include virtual=”inc/headerv6.asp”–>
<!–  test —






如上所示, <!– test –> 會造成問題, 我就被這個問題搞的我兩天沒睡, 最後終於被我DEBUG出來! = =+

從此以後我一定會記得,不要在檔頭插入任何的註解….

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *