Категории |
Баг в шаблонеВозникла проблема при верстке своего шаблона. Выплывает следующая хрень (больше никак назвать не могу): html код надо смотреть, а не стили. точнее шаблон сам. не так выразился. Вот на этом шаблоне <table cellpadding="0" cellspacing="0" border="0" style="width:766px" align="center"> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" style="height:336px"> <tr> <td> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td bgcolor="#EBEBEB"><img alt="" src="images/spacer.gif" width="1" height="14"></td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td> <a href="#"><img src="images/m1.gif" alt="" border="0"></a><br> <a href="#"><img src="images/m2.gif" alt="" border="0"></a><br> <a href="#"><img src="images/m3.gif" alt="" border="0"></a><br> <a href="#"><img src="images/m4.gif" alt="" border="0"></a><br> <a href="#"><img src="images/m5.gif" alt="" border="0"></a><br> </td> <td><img alt="" src="images/p.jpg"></td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" style="height:54px" class="header"> <tr> <td><img alt="" src="images/spacer.gif" width="30" height="1"></td> <td> <table cellpadding="0" cellspacing="0" border="0" style="width:136px"> <tr> <td><strong>Choose your language:</strong><br /></td> </tr> </table> </td> <td> <table cellpadding="0" cellspacing="0" border="0" style="width:108px"> <tr> <td><img src="images/f.gif" alt=""><br /></td> </tr> </table> </td> <td><img alt="" src="images/z1.gif"></td> <td><img alt="" src="images/spacer.gif" width="26" height="1"></td> <td> <table cellpadding="0" cellspacing="0" border="0" style="width:69px"> <tr> <td><strong>Currencies:</strong><br></td> </tr> </table> </td> <td> <table cellpadding="0" cellspacing="0" border="0" style="width:136px"> <tr> <td><select name="menu1" class="jamp" onChange="MM_jumpMenu('parent',this,0)"><option>US Dollar</option></select></td> </tr> </table> </td> <td><img alt="" src="images/z1.gif" ></td> <td><img alt="" src="images/spacer.gif" width="25" height="1"></td> <td> <table cellpadding="0" cellspacing="0" border="0" style="width:235px"> <tr> <td><strong>Shopping Cart </strong>now in your cart <a href="#">5 items</a><br></td> </tr> </table> </td> </tr> </table> <br style="line-height:5px"> </td> </tr> </table> </td> </tr> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" style="height:622px "> <tr> <td><img alt="" src="images/spacer.gif" width="4" height="1"></td> <td> <table cellpadding="0" cellspacing="0" border="0" style="width:226px"> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" class="box_header_txt"> <tr> <td>Shop by categories</td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0"class="box_body"> <tr> <td> <br style="line-height:17px"> <ul> <li class="bg_list"><a href="#">Body Jewelry (6784)</a></li> <li class="bg_list"><a href="#">Bracelets (28292)</a></li> <li class="bg_list"><a href="#">Brooches & Pins (2201)</a></li> <li class="bg_list"><a href="#">Charms (24442)</a></li> <li class="bg_list"><a href="#">Earrings (25706)</a></li> <li class="bg_list"><a href="#">Necklaces (50876)</a></li> <li class="bg_list"><a href="#">Rings (43179)</a></li> <li class="bg_list"><a href="#">Jewelry Sets (2220)</a></li> <li class="bg_list"><a href="#">Watches (52468)</a></li> <li class="bg_list"><a href="#">Accessories (1848)</a></li> <li class="bg_list"><a href="#">Men's Jewelry (72039)</a></li> </ul> <br style="line-height:21px"> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="box_header_txt"> <tr> <td>Manufacturers:</td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" style="height:49px"> <tr> <td align="center" class="vam"> <select name="menu1" class="jamp1" onChange="MM_jumpMenu('parent',this,0)"> <option>please select</option> </select> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="box_header_txt"> <tr> <td>New products</td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0"class="box_body" style="height:145px "> <tr> <td align="center"> <br style="line-height:12px"> <a href="#"><img src="images/p_1.jpg" alt="" border="0"></a><br> <br style="line-height:5px"> <b><a href="#">14k White Gold Diamond</a></b><br> <br style="line-height:9px"> <b>$550.00</b><br> </td> </tr> </table> </td> </tr> </table> </td> <td><img alt="" src="images/spacer.gif" width="4" height="1"></td> <td> <table cellpadding="0" cellspacing="0" border="0" style="width:528px"> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" class="cont_header_txt"> <tr> <td><img alt="" src="images/1_z.gif"></td> <td style="width:100%">Featured products</td> </tr> </table> <br style="line-height:4px"> <table cellpadding="0" cellspacing="0" border="0" class="product"> <tr> <td><img alt="" src="images/spacer.gif" width="1" height="4"></td> </tr> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" class="border" style="height:190px; width:528px"> <tr> <td style="width:147px" align="center" class="vam"><a href="#"><img src="images/1_p1.jpg" alt="" border="0"></a><br></td> <td> <table cellpadding="0" cellspacing="0" border="0" style="width:370px"> <tr> <td style="height:46px" class="vam"><a href="#">18k White Gold Three-Stone Diamond Ring </a></td> </tr> <tr> <td style="height:74px"> <br style="line-height:5px"> <span>Kerode fertase miasert nerode feraste miasert</span><br> <br style="line-height:9px"> Conse ctetue miasras adipis cin asemasert elortlestie lacuy endrerit mauri Phasellus porta. Fusce suscipit variusmci natue penatibus. </td> </tr> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" style="height:59px" class="border1"> <tr> <td style="width:116px" class="vam" align="center"><b>$830.55</b><br></td> <td><img alt="" src="images/1_z1.gif"></td> <td><img alt="" src="images/spacer.gif" width="97" height="1"></td> <td style="width:154px"> <br style="line-height:11px"> <a href="#"><img src="images/button_add_to_cart1.gif" alt="" border="0"></a><br> <br style="line-height:4px"> <a href="#"><img src="images/button_details.gif" alt="" border="0"></a><br> </td> </tr> </table> </td> </tr> <tr> <td><img alt="" src="images/spacer.gif" width="1" height="9"></td> </tr> </table> </td> <td><img alt="" src="images/spacer.gif" width="4" height="1"></td> </tr> </table> </td> </tr> <tr> <td><img alt="" src="images/spacer.gif" width="1" height="4"></td> </tr> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" class="border" style="height:190px; width:528px"> <tr> <td style="width:147px" align="center" class="vam"><a href="#"><img src="images/1_p2.jpg" alt="" border="0"></a><br></td> <td> <table cellpadding="0" cellspacing="0" border="0" style="width:370px"> <tr> <td style="height:46px" class="vam"><a href="#">14K White Gold 5/8 Carat t.w. Diamond Bridal Set</a></td> </tr> <tr> <td style="height:74px"> <br style="line-height:5px"> <span>Lerose delero kerode fertase miasert lerode ferasert</span><br> <br style="line-height:9px"> Ctetue miasras adipis cin asemasert elortlestie lacuy hendrerit mausertas Phasellus porta. Fusce suscipit vamagnis dis parturient montes. </td> </tr> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" style="height:59px" class="border1"> <tr> <td style="width:116px" class="vam" align="center"><b>$960.80</b><br></td> <td><img alt="" src="images/1_z1.gif"></td> <td><img alt="" src="images/spacer.gif" width="97" height="1"></td> <td style="width:154px"> <br style="line-height:11px"> <a href="#"><img src="images/button_add_to_cart1.gif" alt="" border="0"></a><br> <br style="line-height:4px"> <a href="#"><img src="images/button_details.gif" alt="" border="0"></a><br> </td> </tr> </table> </td> </tr> <tr> <td><img alt="" src="images/spacer.gif" width="1" height="9"></td> </tr> </table> </td> <td><img alt="" src="images/spacer.gif" width="4" height="1"></td> </tr> </table> </td> </tr> <tr> <td><img alt="" src="images/spacer.gif" width="1" height="4"></td> </tr> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" class="border" style="height:190px; width:528px"> <tr> <td style="width:147px" align="center" class="vam"><a href="#"><img src="images/1_p3.jpg" alt="" border="0"></a><br></td> <td> <table cellpadding="0" cellspacing="0" border="0" style="width:370px"> <tr> <td style="height:46px" class="vam"><a href="#">14k White Gold Sapphire & Diamond Ring</a></td> </tr> <tr> <td style="height:74px"> <br style="line-height:5px"> <span>Delero kerode fertase miasert kerode fertase delero</span><br> <br style="line-height:9px"> Asemasert elortlestie lahendrerit mauris. Phasellus porta. Fusce suscipit variusmcis nato que penatibus et magnis dis parturient montes. </td> </tr> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" style="height:59px" class="border1"> <tr> <td style="width:116px" class="vam" align="center"><b>$1019.00</b><br></td> <td><img alt="" src="images/1_z1.gif"></td> <td><img alt="" src="images/spacer.gif" width="97" height="1"></td> <td style="width:154px"> <br style="line-height:11px"> <a href="#"><img src="images/button_add_to_cart1.gif" alt="" border="0"></a><br> <br style="line-height:4px"> <a href="#"><img src="images/button_details.gif" alt="" border="0"></a><br> </td> </tr> </table> </td> </tr> <tr> <td><img alt="" src="images/spacer.gif" width="1" height="9"></td> </tr> </table> </td> <td><img alt="" src="images/spacer.gif" width="4" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> <td><img alt="" src="images/spacer.gif" width="4" height="1"></td> </tr> </table> </td> </tr> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" style="height:89px; background:url(images/bot.gif)" class="footer"> <tr> <td><img alt="" src="images/spacer.gif" width="46" height="1"></td> <td style="width:188px"><br style="line-height:41px"><a href="#"><img src="images/p1.gif" alt="" border="0"></a><br></td> <td><img alt="" src="images/z2.gif"></td> <td><img alt="" src="images/spacer.gif" width="21" height="1"></td> <td style="width:510px"> <br style="line-height:37px"> <img src="images/z3.gif" alt=""> <a href="#"><strong>Special</strong></a> <img src="images/z3.gif" alt=""> <a href="#"><strong>Site Search</strong></a> <img src="images/z3.gif" alt=""> <a href="#"><strong>Contact</strong> Us</a> <img src="images/z3.gif" alt=""> <a href="#"><strong>Create an account</strong></a> <img src="images/z3.gif" alt=""> <a href="#"><strong>Customer Login</strong></a><br style="line-height:1px;"> <br style="line-height:7px;"> <span><a href="#">Jewelry Store</a></span> © 2007 <b><a href="#">Privacy Notice</a></b><br> </td> </tr> </table> </td> </tr> </table> P.S. Убирал полностью стили, баг остался. Что самое интересное, когда после <td> вставляешь простой текст, все выводит нормально... без смещения. {$box_CATEGORIES} {$box_FEATURED} {$box_WHATSNEW} эта хрень выплывает. А если быть точнее, то при выводе только {$box_CATEGORIES} может файл не в той кодировке? что за редактор? Попробуйте сохранить html файл категорий utf8 без bom Вопрос решился, спасибо. |
|