我正在使用jssor滑塊在我的頁面上顯示滑塊。當他的文字在一個外部動畫div裏時,顯示很清晰而且沒有像素化。爲什麼文本在動畫中使用而不是靜態
HTML:
<div u="slides" class="sliderHolder">
<div>
<img u="image" src="theImages/slider/homepage/1.png" alt="1" title="1" />
<div u="caption" t="CLIP|L" class="sliderCapMain">
<div class="sliderCapBG"></div>
<div class="sliderCapText">
<h1 class="sliderCapTextHdr">Healthy Cooking</h1>
<br />
<span class="sliderCapTextFtr">Discover simple solutions to cook delicious and healthy meals for you and your family. Cooking tips, how-to guides and more!</span>
</div>
</div>
</div>
</div>
輸出:
但是,當我在做它自己的動畫格文,這是非常像素化和不清晰。
HTML:
<div u="slides" class="sliderHolder">
<div>
<img u="image" src="theImages/slider/homepage/1.png" alt="1" title="1" />
<div u="caption" t="CLIP|L" class="sliderCapMain">
<div class="sliderCapBG"></div>
</div>
<div u="caption" class="sliderCapMain" t="ZMF|10">
<div class="sliderCapText">
<div class="sliderCapTextHdr">Healthy Cooking</div>
</div>
</div>
<div u="caption" class="sliderCapMain" t="RTTL|BR">
<div class="sliderCapTextF">
<div class="sliderCapTextFtr">Discover simple solutions to cook delicious and healthy meals for you and your family. Cooking tips, how-to guides and more!</div>
</div>
</div>
</div>
</div>
輸出:
正如你所看到的第二圖像文字都有點像素化。
CSS:
.sliderHolderMain
{
position: relative;
margin: 0px;
padding: 0px;
float: left;
top: 0px;
left: 0px;
width: 1100px;
height: 347px;
overflow: hidden;
}
.sliderHolder
{
cursor: move;
position: absolute;
left: 0px;
top: 0px;
width: 1100px;
height: 337px;
overflow: hidden;
}
.sliderCapMain
{
position: absolute;
top: 0px;
left: 0px;
width: 225px;
height: 337px;
text-align: center;
}
.sliderCapBG
{
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.85);
filter: alpha(opacity=85);
}
.sliderCapText
{
position: absolute;
top: 5%;
left: 5%;
right: 5%;
color: #000;
text-align: left;
}
.sliderCapTextF
{
position: absolute;
top: 15%;
left: 5%;
right: 5%;
color: #000;
text-align: left;
}
.sliderCapTextHdr
{
color: #0074C9;
font-size: larger;
font-weight: bold;
padding: 0;
margin: 0;
}
.sliderCapTextFtr
{
color: #000;
font-size: small;
}
請幫我解決這個問題。
哪個瀏覽器發生這種情況? – 2014-11-06 15:32:37
令人驚訝的是,問題出在Chrome上。 IE10顯示正常(這很奇怪)。 – Si8 2014-11-06 15:34:32
你可以發佈這段代碼的CSS嗎? – GAntoine 2014-11-06 15:41:05