我使用了000webhost web builder來製作我的網站,現在我想更改一些我無法在編輯器中更改的內容。沒有足夠的空間存放菜單中的j,y這樣的字母
我計劃的大部分工作都很好。我遇到的問題是菜單切斷了像「y」和「j」這樣的低垂字母的下行。我想通過增加菜單按鈕的大小來解決這個問題。這裏是快照:
現在,CSS文件:
.vmenu ul
{
margin-bottom:10px;
padding:0;
width:179px;
/* Main Menu Item widths */
list-style-type:none;
}
.vmenu ul li
{
position:relative;
}
/* Top level menu links style */
.vmenu ul li a
{
display:block;
overflow:auto;
/*force hasLayout in IE7 */
color:#FFF;
text-decoration:none;
}
/*background of menu items (default state)*/
.vmenu ul li a:link,.vmenu ul li a:visited,.vmenu ul li a:active
{
/*background: #414141; color: white;*/
}
/*CSS class that's dynamically added to the currently active menu items' LI A element*/
.vmenu ul li a.selected
{
font-weight:700!important;
/*background: black; color: white;*/
}
/*background of menu items during onmouseover (hover state)*/
.vmenu ul li a:hover
{
/*background: black; color: white;*/
}
/*Sub level menu items */
.vmenu ul li ul
{
padding:5px!important;
background:#FFF;
border:1px solid #D6D6D6;
position:absolute;
width:auto;
/*Sub Menu Items width */
top:0;
font-weight:400;
visibility:hidden;
}
.vmenu ul li ul li
{
overflow:visible!important;
}
/* Holly Hack for IE \*/
* html .vmenu ul li
{
float:left;
height:1%;
}
* html .vmenu ul li a
{
height:1%;
}
/* ######### CSS classes applied to down and right arrow images ######### */
.downarrowclass
{
position:absolute;
top:12px;
right:7px;
}
.rightarrowclass
{
position:absolute;
top:6px;
right:5px;
}
/* ######### CSS for shadow added to sub menus ######### */
.ddshadow
{
position:absolute;
left:0;
top:0;
width:0;
height:0;
background:silver;
}
.toplevelshadow
{
/*shadow opacity. Doesn't work in IE*/
opacity:0.8;
}
感謝您的答覆!
看到HTML的結構也會有所幫助。 – 2012-01-18 14:08:26
你可以在jsFiddle上放置一個示例頁面嗎? – Wesley 2012-01-18 14:18:36
Thanx編輯RedriderX,對不起,我的英文不好(僅限im 15) – 2012-01-18 14:57:06