如何定位/居中移动图像,以便阴影不会将手机推到右侧?我正在使用display: flex;
HTML
<div class="image">
<img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/landing-page/mobile-image-1.jpg" alt="">
<img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/landing-page/mobile-image-2.jpg" alt="">
<div class="middle-image">
<img class="middle-image-mobile" src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/landing-page/mobile-image.png" alt="">
</div>
<img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/landing-page/mobile-image-3.jpg" alt="">
<img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/landing-page/mobile-image-4.jpg" alt="">
</div>
CSS
& .image {
display: flex;
flex-flow: row nowrap;
justify-content: space-around;
& > img {
border-radius: var(--theme-border-radius);
flex-grow: 1;
height: 100%;
width: 13%;
}
}