我想包括一个底部边框图像(箭头,159px宽)菜单冲突。 像这样:与边框底部
但问题是,该<li>
不能得到159px的宽度。
有什么招数来表示图像边界,不推其他<li>
走呢?
LG cgee
的<li>
的代码:
.sub_menu ul li {
float: left;
font-family: 'Open Sans',sans-serif;
font-weight: bold;
height: 41px;
margin-right: 20px;
margin-top: 10px;
}
的有源元件的代码:
.sub_menu ul .active {
background-image: url("../images/sub_menu_border_active.png");
background-position: center 17px;
background-repeat: no-repeat;
position: relative;
z-index: 100;
}
您需要张贴代码重现您的问题或问题只会得到封闭。 – Archer
我做到了。我包括第三张照片了。 – cgee
你也可以尝试使用CSS3的形状...... –