in the Onsen UI carousel (ons-carousel)
Is it possible to automatically set the height according to the width of the image?
If I don't specify the height, it won't be displayed.
I would like it to expand and contract according to the display, but is there any way to write it?
ons-carousel{
position:static;
}
ons-carousel-item {
overflow — hidden;
height —initial!important;
}
Assume that <img>
is just placed under ons-carousel-item
.Wouldn't it be good to play with CSS like this?
© 2024 OneMinuteCode. All rights reserved.