双色导航栏固定顶部自举

时间:2014-04-03 11:55:42

标签: html css twitter-bootstrap

我想重新创建这张图片:

enter image description here

使用navbar-fixed-top的{​​{1}}中的

,目前我已添加此自定义Bootstrap

导航栏-固定top.css

CSS

这是导航栏的引导代码:

.navbar {
    background-color: #8CB5A0;
    background-image: none;
}

这是css:

但我怎么能添加双红色边框,因为有两种类型的红色,或者更好我可以直接添加图像作为背景?

2 个答案:

答案 0 :(得分:3)

这是使用box-shadow

的更好选择

Double border

答案 1 :(得分:0)

为图片添加如此背景background: url("urltoimage") repeat-x;

相关问题