[問題] head裡的東西跑走了@@
我用php寫下了
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $title; ?></title>
<link rel="stylesheet" href="style.css" type="text/css">
<script type="text/javascript"
src="" rel="nofollow">http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
$(function(){
var ViewportHeight=document.body.clientHeight;
ViewportHeight -= 20;
$("#main_table").attr('height',ViewportHeight);
});
</script>
</head>
可是丟到伺服器上跑以後他就變成
<html>
<head>
</head>
<body cz-shortcut-listen="true">
""
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $title; ?></title>
<link rel="stylesheet" href="style.css" type="text/css">
<script type="text/javascript"
src="" rel="nofollow">http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
$(function(){
var ViewportHeight=document.body.clientHeight;
ViewportHeight -= 20;
$("#main_table").attr('height',ViewportHeight);
});
</script>
....
head裡面的東西全部都被丟到body裡面
請問為什麼會發生這種事呢
是我有少加什麼嗎
還是說這是PHP的問題要換板問Q_Oꨊ
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.130.128.171
推
11/21 15:13, , 1F
11/21 15:13, 1F
→
11/21 15:19, , 2F
11/21 15:19, 2F
→
11/21 15:52, , 3F
11/21 15:52, 3F
→
11/21 16:30, , 4F
11/21 16:30, 4F
→
11/21 16:32, , 5F
11/21 16:32, 5F
→
11/21 17:04, , 6F
11/21 17:04, 6F
→
11/21 17:04, , 7F
11/21 17:04, 7F
→
11/22 00:03, , 8F
11/22 00:03, 8F
→
11/22 13:13, , 9F
11/22 13:13, 9F
→
11/22 13:14, , 10F
11/22 13:14, 10F
→
11/22 17:48, , 11F
11/22 17:48, 11F
→
11/22 17:55, , 12F
11/22 17:55, 12F
→
11/22 17:56, , 13F
11/22 17:56, 13F
→
11/22 17:56, , 14F
11/22 17:56, 14F
→
11/22 17:56, , 15F
11/22 17:56, 15F