html - 如何制作圆形图像

标签 html css svg

我想制作类似 this 的圆形图像我进行了搜索和谷歌搜索,但没有找到任何使图像变圆的解决方案。我可以做图像 rounded border像这样,但我不知道如何使图像本身变圆。请帮忙

最佳答案

试试这个,通过调整 heightwidth 来改变半径。 heightwidth 应该相等并且是您需要的半径的两倍

HTML :

<div id="round">
</div>

CSS:

#round{
    height:100px;
    width:100px;
    border-radius:50%;
    background:green;
    overflow:hidden;
}

Fiddle Demo/更新

检查此响应圈 DEMO

关于html - 如何制作圆形图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21677395/

相关文章:

javascript - 用多种颜色填充 SVG 路径

javascript - 我想为 appendChild() 设置动画,使其淡入

html - 如何最好地实现嵌套的可点击元素?

c++ - 解析 SVG 变换属性的变换列表

jquery - 使用 JQuery mobile 在 SVG 上触摸事件

html - CSS - 网格行居中

jquery - 折叠时 Bootstrap Navbar 颜色故障

html - IE11兼容性 View 中的定位问题

html - style.css 中的链接不会更新

html - 在 Mozilla 中热衷于使用 CSS3 过滤器?