CSS: .container{height: auto;} /**Top menu**/ .nav{ height:40px;background:url(../images/topbar_bg.gif) repeat-x; margin-top: 0px; padding-top: 0px;line-height: 40px;} ul{list- style: none; white-space: nowrap;} ul li{ margin: auto 20px; padding: 0; color: #BFBFBF; display: inline; height: 40px; } .logo{} .navleft{} .navright{margin-right: } a:link {color: #BFBFBF; text-decoration: none;} /* Unvisited link */ a:visited {color : #BFBFBF;border: none;} /* Visited links */ a:hover {color: #FFFFFF;border: none;} /* When the mouse is hovering over the link */ a :active {color: #BFBFBF;border: none;} /* Selected link */ .menu_right{margin-left: 80px;} .menu_left{widows: 1px; height: 40px;} .delimiter{background:url(../images/delimiter.png); margin: 0px; padding: 0px; width: 2px; height: 35px;}
Reply to discussion (Solution)
1. Adjust the image position with
vertical-align:bottom;
Copy after login
Copy after login
. 2. Use
line-height:30px;
Copy after login
to adjust the field position.
Thank you both, I found out that the problem is with the picture. The height of my picture is only 35 pixels. I adjusted the position of the image, but it didn’t work
vertical-align:bottom;
Copy after login
Copy after login
I used
vertical-align: middle;
Copy after login
, but there is another problem. Now I suddenly found that my IE can display the vertical line image, but what about Chrome? Can't it be displayed? Keep asking for advice
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn