[英]Make a concave navbar with twitter bootstrap
I'm trying to make my footer navbar slightly concave instead of horizontal. 我正在尝试使页脚导航栏略微凹陷而不是水平。 Anyone know of a good way to do this?
有人知道这样做的好方法吗?
UPDATE 更新
Sorry, I wasn't to descriptive before. 抱歉,我之前没有进行描述。 I'm trying to do something like the following.
我正在尝试执行以下操作。 The tan part would be the navbar footer:
棕褐色的部分将是导航栏页脚:
SOLUTION 解
Changing the border radius on the div above the footer worked. 在页脚上方的div上更改边框半径有效。 Here's what I did:
这是我所做的:
border-bottom-left-radius: 30% 20%;
border-bottom-right-radius: 30% 20%;
z-index: 5;
border-bottom: 2px solid #b7af98;
I think what you are looking for is this : 我认为您正在寻找的是:
http://www.w3schools.com/cssref/css3_pr_border-radius.asp http://www.w3schools.com/cssref/css3_pr_border-radius.asp
and since you want this done to a footer, you may want to try : 并且由于您希望将此操作添加到页脚,因此您可能需要尝试:
footer {
border-top-left-radius:15px;
border-top-right-radius:15px;
}
尝试在现有元素之一中使用背景图片。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.