CSS3 边框半径不适用于 div 元素 [英] CSS3 Border Radius Not Working for div element

查看:31
本文介绍了CSS3 边框半径不适用于 div 元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是网络新手.一切都很好,但在这种情况下,border-radius 在浏览器中不起作用,比如 chrome/FF.像这样的 CSS 代码:

I'm new in Web. everything was fine but in the case border-radius not working in browser anyone like chrome/FF. The CSS code like this :

.work-step div {
color: #e67e22;
margin: 2px solid #e67e22;
display: inline-block;
border-radius: 50%; //not working
height: 50px;
width: 50px;
text-align: center;
float: left;
padding: 5px;
font-size: 120%;
margin-left: 25px;

}

推荐答案

将此添加到您的 css

Add this to your css

overflow:hidden;

这篇关于CSS3 边框半径不适用于 div 元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆