84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Code effecthttp://u6.gg/Xbj
I want to put the avatar into the frame and make it adaptive.
Here comes a master to help me change the code.
.bg adds relative positioning;
Put a p outside the avatar and use absolute positioning, set the size you want; Use percentages for all key units
Avatar setting width, height100%
img length and width are 100%
Image adaptive img {max-width: 100%;}Place that person in the picture
Add class: <img class="img-box" src="./0.jpg" class="avatar">
class style:
.img-box { position: absolute; left: 150px; top: 25px; width: 122px; height: 124px;}.bg { position: absolute;}You should find the cut image People want specific sizes, I made them by manual debugging
.bg { position: relative; } .avatar { position: absolute; top: 9%; left: 14.5%; width: 12%; } .top-bg { width: 100%; position: relative; z-index: 2; }
Change the window size as you wish
.bg adds relative positioning;
Put a p outside the avatar and use absolute positioning, set the size you want; Use percentages for all key units
Avatar setting width, height100%
img length and width are 100%
Image adaptive img {max-width: 100%;}
Place that person in the picture
Add class: <img class="img-box" src="./0.jpg" class="avatar">
class style:
.img-box {
position: absolute;
left: 150px;
top: 25px;
width: 122px;
height: 124px;
}
.bg {
position: absolute;
}
You should find the cut image People want specific sizes, I made them by manual debugging
Change the window size as you wish