Jump to content
  • 0

Разъезжается таблица в ie - помогите пожалуйста.


astalavista
 Share

Question

Здравствуйте.

Делаю свои первые шаги в html и совсем чайник в CSS. В нстоящий момент мне нужно сделать главную страничку на этом сайте интернет магазина продающего аэрогрили

Проблема следующая - на главной странице есть таблица с товарами - фотки, названия, цена и описания. Вот эта таблица выглядит нормально в Firefox но разъезжается в ie (ячейки не 3 в ряд стоят а опускаются ниже).

Я пробовал увеличивать их длину и ширину - не помогает.

Что можно сделать в данной ситуации?

Вот изначальный код который отвечает за эту таблицу (движок shop-script):

<table align="center" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<ul class="product_list">
{foreach from=$__products item=_product}
{if $_product.slug}
{assign var=_product_url value="?productID=`$_product.productID`&product_slug=`$_product.slug`"|set_query_html}
{else}
{assign var=_product_url value="?productID=`$_product.productID`"|set_query_html}
{/if}
<li style="width: {$smarty.const.CONF_PRDPICT_THUMBNAIL_SIZE+47}; height: {if $__block_height}{$__block_height}{elseif $_product.thumbnail}{$smarty.const.CONF_PRDPICT_THUMBNAIL_SIZE+280}{else}55{/if};">
{if $_product.thumbnail}
<table align="center" border="0" cellpadding="0" cellspacing="0" style="width: {$smarty.const.CONF_PRDPICT_THUMBNAIL_SIZE}; height: {$smarty.const.CONF_PRDPICT_THUMBNAIL_SIZE};"><tr><td valign="bottom" align="center">
<a align="middle" href="{$_product_url}"><img align="center" src="{$smarty.const.URL_PRODUCTS_PICTURES}/{$_product.thumbnail|escape:'url'}" /></a>
</td></tr></table>
{/if}
<h3><font color="#ff0000" size="12"><a href="{$_product_url}">{$_product.name} </a> </h3>
{if $_product.Price}<div class="totalPrice">{$_product.price_str}</div>{/if}
<font color="#000000" size="12" face-"Tahoma">{$_product.brief_description}</font>

</li>
{/foreach}
</ul>

</td>
</tr>
</table>

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
Не пойму, зачем делать для каждого товара свою таблицу? Сделай одну таблицу для трёх товаров и в ней три ячейки, тогда ничего не развалиться.

ну я так понимаю что у меня 2 варианта.

1ый - прописать таблицу и все ее настройки вручную.

2ой поменять код который есть - на правильный, например так как вы сказали.

если говорить про 2ой путь решения то у меня просто элементарно понимания не хватает понимания куда что девать.

вы не могли бы помочь мне и переписать код - каким он должен быть для вашего варианта?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy