Docker III: Image – Basic Usage

Fetch Mirrors The command to fetch an image from the Docker image repository is docker pull. the command format is: $ docker pull [options] [Docker Registry address[:port number]/] repository name[:label] The specific options can be seen with the docker pull –help command, here we talk about the format of the Read more

Image Height adaptive and consistent with the Width of the parent div in CSS

<div class="box"> <img src="upimg/comm.png"/> </div> <div class="box"> <img src="upimg/comm1.png"/> </div> <div class="box"> <img src="upimg/comm2.png"/> </div> .box{ width: 100%; margin: 20px auto; background: skyblue; position: relative; padding-bottom: 56%; // change this overflow: hidden; } .box>img{ width: 100%; position: absolute; top: 0; left: 0; } Note: padding-bottom attribute: when the value is Read more