以下css呈現的方式與瀏覽器(主要是Firefox)有所不同: Firefox:border-left-style:dashed似乎不起作用根據需要顯示黑色線條代替。在FireFox 3.0.15/IE 6.0和7.0上以simialr的方式製作CSS渲染
我已經捕獲屏幕截圖
FF - >
http://pixpin.com/images/81898090171964887806.jpg
IE6 - > http://pixpin.com/images/32538710129638992535.jpg
而且字體似乎是另一個問題,使用EM作爲他們的反應相對較好在跨瀏覽器中。當我使用像素它一團糟,但不知道他們是不是更好。
我不是CSS專家,使用CSS讓我感覺比與二手汽車經銷商打交道更糟糕。
.Main
{ 字體-family:宋體, 「投石機MS」,無襯線; font-size:0.8em;
border:0px; } 。報頭 font-family:Arial,「Trebuchet MS」,Sans-Serif; font-size:1.2em; 顏色:#666; background:url(「../ images/header.jpg」)repeat-x top left; padding-left:10px;
padding:4px; text-transform:大寫; border:1px; border-collapse:collapse; border-bottom-width:thin; border-left-style:dashed;
} .Footer { color:#666; font-family:Arial,「Trebuchet MS」,Sans-Serif; font-size:0.7em; } .Footer td {border-style:none; text-align:center; }
。腳踏板跨度 顏色:#666; font-family:Arial,「Trebuchet MS」,Sans-Serif; font-size:0.7em; font-weight:bold; text-decoration:underline; border-style:none; }
.Footer a font-family:Arial,「Trebuchet MS」,Sans-Serif; font-size:0.7em; 顏色:#666;
}
。結果-項目TD { 保證金左:10px的; vertical-align:middle; 顏色:#666; background-color:white; font-size:1。2em的; padding:4px; font-family:Arial,「Trebuchet MS」,Sans-Serif; padding-left:10px;
line-height:20px; border:1px; border-collapse:collapse; border-bottom-width:thin; border-left-style:dashed; }
。結果-HartItem td { margin-left:10px; vertical-align:middle; 顏色:#666; font-size:1.2em; /* _font-size:1.2em;/* IE6 hack */ padding:4px; font-family:Arial,「Trebuchet MS」,Sans-Serif; background-color:#ccc; padding-left:10px;
line-height:20px; border:1px; border:1px; border-collapse:collapse; border-bottom-width:thin; border-left-style:dashed;
}
金額{ 文本對齊:右; }
您是否有現場示例或錯誤的截圖?此外,所需效果的屏幕截圖通常會幫助我們更多地幫助您:) – Kyle 2010-05-26 08:10:06
這是一個全局性問題,瀏覽器不兼容 – Starx 2010-05-26 08:14:15
問題更新時會附帶截圖。 – 2010-05-27 08:31:29