CSS border-radius:20px

OnyeApam

我想将border-radius设置为div.Blur div半径看起来像这样。我该如何解决?谢谢。

<div class="content" style="background-image:url('img/2.jpg');"><br>
<div class="caption"><br>
<div class="blur">/div> <br>
<h1>Click/h1><br>
</div> <br>
</div><br>

图片预览在这里(编辑)

CodePen示例在这里

.content
{
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    border: 20px solid #25a9e6;
}
.caption
{
    cursor: pointer;
    position: absolute;
    opacity: 0;<br>
    -webkit-transition: all 0.20s ease-in-out;
    -moz-transition: all 0.20s ease-in-out;
    -o-transition: all 0.20s ease-in-out;
    -ms-transition: all 0.20s ease-in-out;
    transition: all 0.20s ease-in-out;
    height:100%;
}
.blur
{
    background-color: rgba(0,0,0,0.7);
    /*background-color: rgba(7, 194, 209, 0.75);*/
    width: 210px;
    height: 210px;
    z-index: 5;
    position: absolute;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
}
希望D.

您可以添加.imageContent类:

border-radius: 50px;

但这也是临时解决方案...

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

CSS Border Radius问题

div中的CSS背景颜色仅高20px

更圆角-Border Radius CSS

CSS Border Radius Second Radius说明

CSS border-radius xy是否存在?

CSS过渡移除border-radius属性

由于 left: 20px; CSS 表不尊重容器大小;

SASS / SCSS mixin生成CSS网格类-IE 11需要额外的20px间隙列

CSS Arch是否可以使用border-radius?

CSS:border-radius //插入背景;白角

使用border-radius CSS时平滑边框

CSS标头未对齐。尝试使用顶部-20px菜单其余部分显示徽标,但未将其对齐

根据兄弟姐妹的宽度动态设置CSS border-bottom-left-radius

切換到 gatsby-plugin-image 後,CSS Border Radius 在 Safari 中不起作用

我可以使用CSS border-radius属性制作椭圆吗?

CSS padding 和 border-radius 未在移动设备上应用

如何向下拉蚂蚁设计元素添加border-radius CSS属性?

CSS:IE 中的多个 bgs、bg clip 和 border-radius

CSS Border DIV作为形状

CSS3的border-radius属性和border-collapse:collapse不能混合使用。如何使用边框半径创建带有圆角的折叠表格?

border-radius和-webkit-border-radius之间的区别

当父窗格在JavaFX中具有-fx-border-radius时,子窗格css样式

一个人如何才能将CSS属性(如border-radius)与transitionables一起使用

当 CSS 框改变大小时,为什么 Border-Radius 比率会发生变化

CSS 样式中 border 和 border-width 属性的区别

CSS Hexagon Border无法正常工作

CSS中的border-image-width

CSS Border过渡无限动画循环

填充前的css border-bottom