5
« : Марта 28, 2013, 11:49:01 am »
Скачал последнюю версию скрипта, не работает ресайз картинок. как решить?
Т.е. загружаю картинку меньше размером чем заданно в админке, к картинке не добавляется фон и размер не меняется.
Еще вопрос по верстке, в приложении картинку что есть.
/* Спецпредложения */
.product_list{text-align:center; width: 100%; margin-bottom: 30px;}
.pr_list_item{display: inline-block; margin:7px 0; background:#4c98d6; padding:3px; position:relative;}
.pr_list_name{font-size:12px; font-weight:bold; position:absolute; top:5px; left:5px;}
.pr_list_about{font-size:12px; font-weight:bold; height:25px; float:right; width:50%; height:25px; line-height:25px;}
.pr_list_price{width:43%; margin-top:3px; float:left; font-size:14px; white-space: nowrap;
background: #fafcfd; /* Для старых браузров */
background: -moz-linear-gradient(top, #fafcfd, #8ec8d0); /* Firefox 3.6+ */
/* Chrome 1-9, Safari 4-5 */
background: -webkit-gradient(linear, left top, left bottom,
color-stop(0%,#fafcfd), color-stop(100%,#8ec8d0));
/* Chrome 10+, Safari 5.1+ */
background: -webkit-linear-gradient(top, #fafcfd, #8ec8d0);
background: -o-linear-gradient(top, #fafcfd, #8ec8d0); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #fafcfd, #8ec8d0); /* IE10 */
background: linear-gradient(top, #fafcfd, #8ec8d0); /* CSS3 */
padding: 2px;
border: 1px solid #86c1c8;}
.pr_list_price span{color:#000;font-size:11px;}
.pr_list_img{ background:#FFF;}
<div class="product_list">
{foreach name=special from=$special_offers item=special_offer}
<div class="pr_list_item">
<div class="pr_list_name"><a href="./{$special_offer.hurl}">{$special_offer.name}</a></div>
<div class="pr_list_img" style="width:{$smarty.const.RESIZE_SMALL_X}px; height:{$smarty.const.RESIZE_SMALL_Y}px"><img src="./products_pictures/{$special_offer.picture}" border="0" alt="{$special_offer.name}" /></div>
<div class="pr_list_about"><a href="./{$special_offer.hurl}">Ïîäðîáíåå...</a></div>
<div class="pr_list_price">{$special_offer.Price}</div>
</div>
{/foreach}
</div>