2011-02-28 77 views
0

在我的網站上使用圖像精靈。ie6和ie7刪除圖像精靈周圍的邊框

在IE6和IE7灰色邊框顯示在圖像周圍.. 在其他瀏覽器IE8 +

工作正常,我該如何去除呢?
這裏是一個底部是一個div:

enter image description here

+2

明確地設置一個邊界:0在某些類是獨特的精靈? – 2011-02-28 19:36:39

+2

既然你提到一個灰色的邊框,它可以從PNG透明度? – 2011-02-28 19:38:07

+1

你可以舉一個例子url或小提琴..? – Fatih 2011-02-28 19:40:39

回答

1

我改變形象標籤的div和它的工作。

0
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr, 
acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong, 
sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot, 
thead,tr,th,td 
{ 
    border:0; 
    font-weight:inherit; 
    font-style:inherit; 
    font-size:100%; 
    font-family:inherit 
} 

將代碼添加到我的主css文件中,並且IE7中的所有邊框都消失了。

+0

爲了提高您的文章的質量,請包括該代碼如何/爲何解決問題。 – 2012-10-04 09:54:28