Add a width to .main-radius7
. Cant really add a demo because you didnt provide code but thats all you have to do.
Same thing goes for height
.
So you will have something like:
.radius7{
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
-khtml-border-radius: 7px;
border-radius: 7px;
width: 400px;
height: 100px;
}
I just see your page where you have applied height: auto;
in .rslides img
which will not work. You need to define yourself like height: 200px;
Or, perhaps you might want to get responsive, so use max-width: 100%;
使用.height()
$('.main.radius7').height(200);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.