gpt4 book ai didi

css - 有没有办法使用
裁剪图像,使其具有圆 Angular ?

转载 作者:搜寻专家 更新时间:2023-10-31 23:10:50 27 4
gpt4 key购买 nike

我认为使用带 CSS 圆 Angular 的 div 裁剪图像比使用在 Photoshop 中裁剪的图像然后以透明格式导出为 PNG-32 的图像加载速度更快。

最佳答案

确保你让它跨浏览器兼容:

img {
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
}

border-radius 属性的简写是:

border-radius: top-left top-right bottom-right bottom-left;

因此 10px 30px 10px 30px 的值将比其他两个更圆润右上角和左下角:

-moz-border-radius-topleft:10px;
-moz-border-radius-topright:30px;
-moz-border-radius-bottomright:10px;
-moz-border-radius-bottomleft:30px;
-webkit-border-radius:10px 30px 10px 30px;
border-radius:10px 30px 10px 30px;

关于css - 有没有办法使用 <div> 裁剪图像,使其具有圆 Angular ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9449734/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com