In general, when you move a Web page, the image properties are written as follows to achieve adaptive size
<styletype= "Text/css">. Nameg{background:Rgba (000,000,000,0.6);}. Nameg Div{float: Left;}. Nameg. A1{width:10%;background:#000000;}. Nameg. A1 img{width:100%;Height:100%;Display:Block;}. Nameg. A2{width:90%}</style><Divclass= "Nameg clearfix"> <Divclass= "A1"> <imgsrc= "Iconfont-close". PNG "> </Div> <Divclass= "A2"></Div></Div>
If at some special time the picture will appear width automatic height but stretch, can use the following notation (max-width:100%; height:auto;display:block; )
Note: It is best to use the 1:1 standard size picture when making the user image picture, and must have the default picture, otherwise will appear when the placeholder or cannot find the picture the stretch phenomenon
<styletype= "Text/css">. Nameg{background:Rgba (000,000,000,0.6);}. Nameg Div{float: Left;}. Nameg. A1{width:10%;background:#000000;}. Nameg. A1 img{Max-width:100%;Height:Auto;Display:Block;}. Nameg. A2{width:90%}</style><Divclass= "Nameg clearfix"> <Divclass= "A1"> <imgsrc= "Iconfont-close". PNG "> </Div> <Divclass= "A2"></Div></Div>
How to adjust the size of a picture in a mobile Web page