2017-09-29 9 views

답변

0

두 개의 블록이 있습니다. 당신은

.bg 
 
{ 
 
    width: 120px; 
 
    height: 120px; 
 
    border: solid green; 
 
} 
 

 
.image 
 
{ 
 
    position: relative; 
 
    top: 30px; 
 
    left: 30px; 
 
    width: 100px; 
 
    height: 100px; 
 
    background-color: red; 
 
}
<html> 
 
<head> 
 
</head> 
 
<body> 
 
<div class="bg"> 
 
<div class="image"> 
 

 
</div> 
 
</div> 
 
</body> 
 
</html>

(빨간 하나에 그림) 같은 것을 사용할 수 있습니다