發現 a 標簽內的元素高度和img高度不相等 <a href="#"> <img src="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3979058804,967901392&fm=26&gp=0.jpg" alt="美" width=200> </a>2.使用border-radius無法使該img標簽變為圓形<div class="alice"> <div style="padding: 10px;opacity: 0.8;"> <a href="#"> <img src="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3979058804,967901392&fm=26&gp=0.jpg" alt="美" width=200 style="border-radius: 10px"></a> </div> <div class="topic"> 人物 </div></div>jsfiddle希望各位大佬們可以幫忙解答下,感激不盡。
border-radius無法使嵌套在a標簽內的img元素變為圓形
慕無忌1623718
2018-12-22 15:14:07