答案 0 :(得分:0)
CSS:
src
HTML:
src: ['*.*']
的jsfiddle:
答案 1 :(得分:0)
试试这个:
<html>
<head>
<title>Responsive image</title>
</head>
<body>
<div style='width:100%'>
<div style='width:100px; height:100px; position: relative; margin: 0 auto'>
<img src='img/image.jpg' style='width:100%; height:100%' />
</div>
</div>
</body>
</html>