1
我正在设计和使用CSS转换:缩放和转换。它在Firefox中运行良好,但在Chrome,Safari和Opera中无法正常工作。这是一个圆形缩放效果,在这些浏览器中它会进入正方形。不知道发生了什么,为什么它在Firefox中有效,但不是其他浏览器。CSS转换出现问题:Chrome,Safari,Opera中的缩放或CSS转换,但在Firefox中正常
这里是我的CSS代码:
.picCircle {
max-height: 200px;
max-width: 200px;
overflow: hidden;
margin: 0 auto;
border-radius: 50%;
}
/*GROW*/
.grow img {
transform: scale(1);
-webkit-transition: all .85s ease;
-moz-transition: all .85s ease;
-o-transition: all .85s ease;
-ms-transition: all .85s ease;
transition: all .85s ease;
}
.grow img:hover {
display: inline-block;
transform:scale(1.1);
-webkit-transform:scale(1.1);
-moz-transform:scale(1.1);
-ms-transform:scale(1.1);
-0-transform:scale(1.1);
}
这里是相关的HTML:
<div class="grow picCircle"><a href="/guest-rooms.htm"><img class="img-responsive" style="margin-right: auto; margin-left: auto;" src="http://bnbwebsites.s3.amazonaws.com/5076/shutterstock_61226425_600x600.jpg" alt="" width="600" height="600" /></a></div>
<h2>Guest Rooms</h2>
<p>Graceful Bed & Breakfast Inn features six well-appointed bedrooms that are furnished with comfortable antiques.</p>
<a class="btn btn-white" style="letter-spacing: 1.2px; margin-top: 25px;" href="/guest-rooms.htm">Learn More</a></div>
链接至网站: http://newgracefulfullblue.mybnbwebsite.com/