<html>
<style>
.smaller-image{
border-radius: 50%;
width: 100px;
}
</style>
<body> <img class="smaller-image" src="/images/cat.jpg"> </body>
</html>
效果:
<html>
<style>
.smaller-image{
border-radius: 50%;
width: 100px;
}
</style>
<body> <img class="smaller-image" src="/images/cat.jpg"> </body>
</html>
效果:
转载于:https://www.cnblogs.com/cnxiaol/p/7270843.html