何らかの理由で、これはfirefoxとiexploreでは機能しますが、chromeでは機能しません。 マウスがロールオーバーするまでサブメニューを非表示にすることが想定されています - クロームでは、マウスオーバーが色の変化などではっきりと動作しますが、メニューはポップアウトしません! あなたが提供できるヘルプは素晴らしいでしょう! ありがとうございます!CSSメニューの項目がクロムに表示されない
#menu, #menu ul
{
margin:0px;
padding:0px;
list-style:none;
list-style-position:outside;
position:relative;
line-height:2em; /* this would mean the element is double the height of the font */
}
/* set up colours, borders and element padding */
#menu a:link, #menu a:active, #menu a:visited
{
display:block;
padding:0px 5px; /* shorthand padding - this means top and bottom padding is 0, left and right are 5px */
color: #000000; /* link text colour */
text-decoration:none;
background-color:#F90; /* specifies background colour of links */
font-weight:bold;
color:#FFC;
/* border stuff */
border:1px solid #F90; /* shorthand, border is 1px wide, solid and coloured */
}
/* set up hover colour for links */
#menu a:hover
{
background-color:#FC6;
color:#900;
border:1px solid #F60;
}
/* position menu elements horizontally */
#menu li
{
width:7em;
position:relative;
}
/* position and hide nested lists (width required to make menu display vertically) and "top" value needs same measurement as defined for #menu */
#menu ul
{
position:absolute;
width:7em;
left:7em; /* same value as width - no bigger otherwise gap will appear and menu will not work */
top:0em; /* line up with parent list item */
display:none;
}
/* set width of links to 12em */
#menu li ul a
{
width:7em;
float:left;
}
/* display information for sub-menus */
#menu ul ul
{
top:auto;
}
#menu li ul ul
{
left:7em;
margin: 0px 0px 0px 10px; /*shorthand margin command */
}
/* display when rolled over - also number of sub-menus to display - if wanted to use more submenus, would need more UL's (ie ul ul ul instead of ul) */
#menu li:hover ul ul
{
display:none;
}
#menu li:hover ul, #menu li li:hover ul
{
display:block;
}
は物事が少し明確にするために、( '>')、可能であれば直系の子孫セレクタを使用してみてください。ちょっとした考え。 – Cronco
この現象を再現する[JS Fiddle](http://jsfiddle.net/)、[JS Bin](http://jsbin.com/)にデモを投稿できますか? –
www.fruitfulcreations.co.uk <これはサイトのライブ版ですが、今日のクロムの問題を実現したのは恥ずかしいことです:P(メニューの「仕事」部分は問題のある部分ですつまり、それは動作しますが、クロムには対応していません) – AltheFuzz