JSDM

HTML

 
1
<div class="parent">
2
  <div class="inner">
3
    <img src="https://cn.vuejs.org/images/logo.png">
4
  </div>  
5
</div>

CSS

x
 
1
.parent{
2
  width:300px;
3
  position: relative;
4
  padding-top: 50%;
5
}
6
7
.parent .inner{
8
  
9
  position:absolute;
10
  top:0;
11
  left:0;
12
}
13
14
.parent img{
15
  width:100%;
16
  height:100%;
17
  /*position:absolute;
18
  top:0;
19
  left:0;
20
  right:0;
21
  bottom:0;
22
  margin: auto;*/
23
}
? ?
? ?
必须是有效的URL
+ 添加另一个资源

JS

xxxxxxxxxx
1
 
1
必须是有效的URL
+ 添加另一个资源
Close

文件管理 点击文件查看URL

图片

  1. 暂无文件

CSS

  1. 暂无文件

JavaScript

  1. 暂无文件

其他

  1. 暂无文件
拖动文件到上面的区域或者:
加载中 ..................