會員 | firefox顯示位置異常問題 語法: <?PHP $title = "首頁"; require './inc/header.inc'; echo ("<TABLE align='center'>"); error_reporting(0); $IP = array("<font size=-2>登陸伺服器:" => "".$loginip.":".$loginport."","<font size=-2>人物伺服器:" => "".$charip.":".$charport."","<font size=-2>地圖伺服器:" => "".$mapip.":".$mapport."",); while(list($ServerName,$Host)=each($IP)) { list($IPAddress,$Port)=explode(":",$Host); echo("<TD><DIV>".$ServerName."</DIV></TD><TD>"); if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) { echo("<DIV style=\"color:'green'\"><font size=-2>正常在線</DIV>"); fclose($fp); }else{ echo("<DIV style=\"color:'red'\"><font size=-2>未知狀態</DIV>");} echo ("</TD></TR><TR>");} $usergs1 = 0;$res = mysql_query("SELECT user FROM `sstatus`");$row = mysql_fetch_array($res);$usergs1 = $row[user]; if($usergs1 == 0) {$usergs2 = '不顯示'; } else { $usergs2 = $usergs1; } echo ("<tr><td><font size=-3> 在線人數: </td><td><font size=-2 color=blue>".$usergs2."</font></td></tr>"); echo ("</TABLE>"); require './inc/indexfooter.inc'; ?> 示正常呢 |
回覆 |
頑劣會員 | 回覆: firefox顯示位置異常問題 1.echo("<TD><DIV>".$ServerName."</DIV></TD><TD>"); 多個 div 有差嗎? 2.echo ("</TD></TR><TR>"); 最後的這個 <tr> 為何不擺在一開始呢? 3.可以給網頁位置看看嗎? |
回覆 |
會員 | 回覆: firefox顯示位置異常問題 我可以給你檔案 因為我沒架站了 沒網頁可看 他的載點 http://www.badongo.com/file/20238813# 不是我寫的 我只是拿來用 IE顯示正常 firefox 就出問題 1 2 3我都沒辦法回答 我不懂才來問的 我只能提供檔案 如果語法有錯 IE應該 也會不正常 可是 IE開啟是正常的 此篇文章於 2010-03-01 05:12 AM 被 sinpei 編輯。. |
回覆 |
|
XML | RSS 2.0 | RSS |
本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。