简体   繁体   English

CSS圆形边框

[英]CSS Rounded borders

I have a form that I would like to round the corner of the borders that you see below. 我有一个表格,想在下面看到的边框的附近。 I would like the borders that outline the form to meet and round. 我希望轮廓勾勒出表格的边界。

在此处输入图片说明

I have tried the border-radius method but it produces this. 我尝试了border-radius方法,但是会产生这种情况。 It rounds the container, which is what I don't want. 它把容器弄圆了,这是我不想要的。

在此处输入图片说明

I have also taken a look at the CSS border-style property, but it doesn't not have an option for rounded intersections of borders. 我也看过了CSS border-style属性,但是它没有用于边界的圆形交集的选项。 If anyone can help, that would be much appreciated! 如果有人可以提供帮助,将不胜感激!

EDIT 编辑

I have created a JSFiddle with my HTML and CSS. 我已经用HTML和CSS创建了一个JSFiddle

First corner removed because of the tab. 由于选项卡,第一个角已删除。 Here's a FIDDLE 这是一块

.tab-content {
  border-radius: 0 30px 30px 30px;
  -moz-border-radius: 0 30px 30px 30px;
  -webkit-border-radius: 0 30px 30px 30px;
}

What you want is: 您想要的是:

.tab-content{
    -webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}

http://jsfiddle.net/stryd3r/vB3m2/1/ http://jsfiddle.net/stryd3r/vB3m2/1/

While giving the border-radius to your container, give it to the form aswell. 在给容器添加border-radius同时,也将其赋给表单。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM