I\'m a beginner and very confused, as a div tag when I give the same width and height with border-radius: 50% it always becomes circle. but with the tag a in case I want to
Add display: block;. That's the difference between a tag and an tag .btn { display: block; height: 300px; width: 300px; border-radius: 50%; border: 1px solid red; } 0 讨论(0) 查看其它9个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
display: block;
tag and an tag .btn { display: block; height: 300px; width: 300px; border-radius: 50%; border: 1px solid red; } 0 讨论(0) 查看其它9个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
.btn { display: block; height: 300px; width: 300px; border-radius: 50%; border: 1px solid red; }