krasts Posted May 29, 2007 Report Share Posted May 29, 2007 sveiki, vajadzeetu nelielu palidzibu... taa kaa visiem ir loti labi zinaams tas ka IE6 slikti gremo png atteelu transparency, vajadzeetu vienai dabulai uzrakstiit kodu, kas uz IE atteelotu vienu bg image, bet uz paareejiem - citu. atradu saadu variantu, bet tas attiecas uz visas lapas bg, varbut kads var palabot un uztaisit to prieks tabulas bg image? <script LANGUAGE="JavaScript"><!-- If (navigator.appName == 'Microsoft Internet Explorer') document.write('<BODY BACKGROUND="image1.gif">'); else document.write('<BODY BACKGROUND="image2.gif">'); //--></SCRIPT> varbuut jums ir citi ietekumi, kaa ciiniities ar so probleemu, ka IE paarluuks transparency vietaa liek gaisi zilu kraasu? dereetu arii taads variants, ka tur kur jaabuut caurspidigai vietai, buutu balta kraasa... paldies! Link to comment Share on other sites More sharing options...
andrisp Posted May 29, 2007 Report Share Posted May 29, 2007 Izmanto conditional comments. http://www.quirksmode.org/css/condcom.html Link to comment Share on other sites More sharing options...
krasts Posted May 29, 2007 Author Report Share Posted May 29, 2007 nezinu, mēģināju, bet nesanāk... kur to kodu iemest? Link to comment Share on other sites More sharing options...
andrisp Posted May 29, 2007 Report Share Posted May 29, 2007 (edited) Kodu vienkārši tāpat nekur nemet :). Vismaz tā nevajadzētu būt. Jābūt izpratnei. Izmanto CSS lai stailotu tabulu. Šis CSS tiks iebarots visiem browseriem: table#tabulas_id { background-image: url('img1.png'); } Bet pēc tam, izmantojot conditional comments, iekļausim speciālu CSS, kas paredzēts tikai IE: <!--[if IE]> <style> table#tabulas_id { background-image: url('img2.png'); } </style> <![endif]--> IE redzēs šo kodu, bet citi browseri uztvers to kā parastu komentu. Edited May 29, 2007 by andrisp Link to comment Share on other sites More sharing options...
krasts Posted May 29, 2007 Author Report Share Posted May 29, 2007 Paldies! Link to comment Share on other sites More sharing options...
Recommended Posts