<div class="carousel-inner">
<?php
$emlak_id=$emlakcek['emlak_id'];
$emlakfotosor=$db->prepare("SELECT * FROM emlakfoto where emlak_id=:emlak_id order by emlakfoto_sira ASC limit 1 ");
$emlakfotosor->execute(array(
'emlak_id' => $emlak_id
));
$emlakfotocek=$emlakfotosor->fetch(PDO::FETCH_ASSOC);
?>
<div style="max-width:100; max-height:200;" class="carousel-item active ">
<img class="img-fluid" style="max-width:100; max-height:200;" src="<?php echo $emlakfotocek['emlakfoto_resimyol'] ?>" alt="First slide">
</div>
<?php
$emlak_id=$emlakcek['emlak_id'];
$emlakfotosor=$db->prepare("SELECT * FROM emlakfoto where emlak_id=:emlak_id order by emlakfoto_sira ASC limit 1,10 ");
$emlakfotosor->execute(array(
'emlak_id' => $emlak_id
));
while($emlakfotocek=$emlakfotosor->fetch(PDO::FETCH_ASSOC)) {
?>
<div style="max-width:100; max-height:200;" class="carousel-item">
<img class="img-fluid" style="max-width:100; max-height:200;" src="<?php echo $emlakfotocek['emlakfoto_resimyol'] ?>" alt="Second slide">
</div>
<?php } ?>
<a style="" class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
Resim boyutlandırma sorunu
3
●436
- 02-11-2018, 17:01:46oldu hocamOnur89TR adlı üyeden alıntı: mesajı görüntüle
, resimin içindeki div e de bi boyut vememe gerekiyormu resim boyutuna göre kayma yaşarmıyım yoksa her resimde aynı boyutu alırmıyım
Hocam yüzdeli width (100%) vereceksiniz. Ayrıca height'i auto yapmalısınız. Bu şekilde resim hem yüzde yüz genişlikte olur, hem de en boy oranı korunmuş olur.
, resimin içindeki div e de bi boyut vememe gerekiyormu resim boyutuna göre kayma yaşarmıyım yoksa her resimde aynı boyutu alırmıyım