简体   繁体   中英

Random div position in fixed size frame

I have fixed size frame, in this frame there are some images with different size, it looks like this:

我的div

I want to show the images randomly or not in order.

If you want to show an image that covers the whole surface of the container you can use the css3 function cover .

Here an example: https://css-tricks.com/perfect-full-page-background-image/#article-header-id-0

Here the official documentation: http://www.w3schools.com/cssref/css3_pr_background-size.asp

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM