MozTW 討論區

各項 Mozilla 相關軟體與技術討論
現在的時間是 2025-08-22, 03:29

所有顯示的時間為 UTC + 8 小時





發表新文章 回覆主題  [ 3 篇文章 ] 
發表人 內容
文章發表於 : 2010-04-20, 11:37 
離線

註冊時間: 2010-04-20, 11:26
文章: 2
這是我在IE8的樣子
在FireFox(3.6)的樣子

***這是html code
document.writeln("<tr>");
document.writeln("<td class='MENU_TITLE'><nobr>&nbsp;" + txtGeneral[13] + "</nobr></td>");
document.writeln("<td class='MENU_VALUE' COLSPAN=2>");
document.writeln("<span class='page' style='cursor:hand' onmouseover=Switch_Bgd(this,'over'); onmouseout=Switch_Bgd(this); onmousedown=Tuning_Val(RGain_slider,-1,'RGain');><img src='/cgi-bin/check.cgi?file=images/left.gif' width='14' height='15' align='absmiddle'></span>");
document.writeln("<span class='Track' id='RGain_track1' style='width:200px; height:9px;'>");
document.writeln("<span id='track1-left'></span><span id='RGain_handle1' style='width:10px; height:15px;'><img src='/cgi-bin/check.cgi?file=images/handle.png' alt='' style='float: left;' /></span>");
document.writeln("</span>&nbsp;");
document.writeln("<span class='page' style='cursor:hand' onmouseover=Switch_Bgd(this,'over'); onmouseout=Switch_Bgd(this); onmousedown=Tuning_Val(RGain_slider,1,'RGain');><img src='/cgi-bin/check.cgi?file=images/right.gif' width='14' height='15' align='absmiddle'></span>");
document.writeln("<input name='RGain' type='text' style='ime-mode:disabled' value='0' size='5' maxlength='5' onKeypress='notsub();' onkeyup='setSliderValue(RGain_slider, this.value);'>");
document.writeln("<SPAN class='VS'>(" + RGain_Min + " ~ " + RGain_Max + ")</SPAN><br>");
document.writeln("</td></tr>");



***在html裡的style
<style type="text/css" media="screen" >

/* put the left rounded edge on the track */
#track1-left {
position: absolute;
width: 5px;
height: 9px;
background: transparent url(/cgi-bin/check.cgi?file=images/slider-left.png) no-repeat top left;
}

/* put the track and the right rounded edge on the track */
/*#track1 { */
.Track{
background: transparent url(/cgi-bin/check.cgi?file=images/slider.png) no-repeat top right;
}

.page{ background-color : #E6F7FF; border:1px solid #87AFD0; padding:0px 3px; font-family:Tahoma; }
/*.page:hover{ background-color : #FFF7E6; border:1px solid #87AFD0; padding:0px 3px; font-family:Tahoma; }*/


</style>


為什麼在IE都正確,在firefox 或是 google chrome都不正確呢? 請各位大大救命唷~ :cry:


回頂端
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
 個人資料  
引用回覆  
文章發表於 : 2010-04-20, 11:57 
離線

註冊時間: 2010-04-20, 11:26
文章: 2
我發現我的html檔案裡沒有加這類的東西
<!DOCTYPE html PUBLIC "-/W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">


若加了這個我的IE,原本可以正確顯示的,也不能正確顯示了...
可是加了, 我的html的風格就變成不是我想要的.....

***若我不加這行,那在IE正常,那該如何讓firefox也正常呢? help~ :roll:


回頂端
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
 個人資料  
引用回覆  
文章發表於 : 2010-04-26, 00:55 
離線
[MozTW 版主群]
頭像

註冊時間: 2005-01-21, 01:40
文章: 1677
來自: Taichung city
先移到「問題網站與網頁技術傳教」

如果是你自己撰寫網頁時的問題,不妨提供完整的原始碼或是抓圖,讓其他人可以比較好幫你解決問題。

_________________
專職文章搬運工
我的部落格/My Bloghttp://rail02000.blogspot.com/書籤不見?Fx開不起來?畫面底下有紅字?請按此


回頂端
Mozilla/5.0 (X11; U; Linux x86_64; ja; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
 個人資料  
引用回覆  
顯示文章 :  排序  
發表新文章 回覆主題  [ 3 篇文章 ] 

所有顯示的時間為 UTC + 8 小時


誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 18 位訪客


不能 在這個版面發表主題
不能 在這個版面回覆主題
不能 在這個版面編輯您的文章
不能 在這個版面刪除您的文章
不能 在這個版面上傳附加檔案

搜尋:
前往 :  
Powered by phpBB® Forum Software © phpBB Group
正體中文語系由 竹貓星球 維護製作
© moztw.org, Mozilla Foundation
MozTW,Mozilla 台灣社群