0
我正在開發離子2應用程序。 我正在尋找圈子中的個人資料圖片,但它不能正常工作。 我希望它在邊界圓和白色的中間。個人資料圖片圓圈比例css
HTML代碼
<div class="splash-info">
<div class="wrapper">
<img src="{{photo}}">
</div>
CSS代碼
.wrapper{
width:128px;
height:128px;
position: relative;
margin: 25px auto;
overflow: hidden;
border-radius:50%;
border: 5px solid white;
}
.wrapper img{
position: relative;
width:100%;
height:auto;
transform: translate(-50%,-50%);
}
.splash-info {
position: relative;
z-index: 2;
margin-top: -64px;
margin-bottom: 30px;
text-align: center;
font-size:15px;
font-weight:bold;
}