【发布时间】:2020-05-13 20:39:30
【问题描述】:
我在页脚有一个表格行,它显示来自数据库的图像。我希望表格行从右侧进入页面并在页面左侧消失,直到显示所有图像。我已使用此代码显示图像
app.blade.php
<div class="footer">
<div class="row justify-content-center">
<div class="container">
<div class="">
@foreach($logo as $l)
<!--<div class="footercar" style="margin:6px;">-->
<!-- <img class="" src="https://partners.hotelstore.co.ke/public{{ $l->company_logo }}" style="width:150px; height:100px;">-->
<!--</div>-->
<table class="footercar">
<tr>
<td>
<img class="" src="https://partners.hotelstore.co.ke/public{{ $l->company_logo }}" style="width:150px; height:100px;">
</td>
</tr>
</table>
@endforeach
</div>
</div>
</div>
<div class="mytext">
<p class="footertext">© Copyright <?php //echo date("Y"); ?> Hotel Store Partners</p>
</div>
</div>
app.css
.footer{
position: fixed;
height:150px;
bottom: 0px;
width: 100%;
background-color: #DCDCDC;
text-align: center;
margin-top:-200px;
}
.footercar, table{
background-color:rgb(220,220,220);
animation: moveImage 3s linear infinite;
display:inline;
left: -350px;
}
.footerminicar{
padding: 2px 16px;
}
@keyframes moveImage {
100% {
transform: translateX(calc(100vw + 350px));
}
}
.footertext{
font-size:14px;
color:#000000;
}
我已设法显示图像。 CSS似乎不起作用。如何让它工作?
【问题讨论】:
-
你可以试试为图片添加
标签: html css laravel-blade