修改图片尺寸
问:如何修改才能让图片宽度为 300px ?注意下面代码不可修改。
<img src="1.jpg" style="width:480px!important;”>
答:
1.max-width: 300px
2.transform: scale(0.625,0.625)
3.
box-sizing: border-box;
padding: 0 90px;
4.
zoom:0625
5.
img {
animation: test 0s forwards;
}
@keyframes test {
from {
width: 300px;
}
to {
width: 300px;
}
}