我有一个网站的下拉菜单,它在桌面浏览器上运行良好,但在 iPad 或 iPhone 设备上不运行。但是它确实可以运行,但可以在 android 设备上运行。我有一个具有相同导航结构的类似站点,并且在该站点上运行良好。
网址是 www.aiimconference.org。这是导航结构和 CSS 的示例。这里也是完美运行的网站。我一直在这个网站上使用相同的结构。www.aiim.org。
<ul>
<li><a href="/conference">Home</a></il>
<li class="expandable"><a href="/conference">Program</a>
<ul>
<li class="expandable"><a href="/conference">Program</a></il>
<li class="expandable"><a href="/conference">Program</a></il>
</ul>
</il>
<li class="expandable"><a href="/conference">Connect</a></il>
<li class="expandable"><a href="/conference">Register</a></il>
<li class="expandable"><a href="/conference">Sponsors</a></il>
<li class="expandable"><a href="/conference">Venue</a></il>
</ul>
.mainNav li.expandable > a /* dropdown */{
background: url("/assets/sites/aiimconference/www/conf2013/styles/css_img/layout/dropdown.jpg") no-repeat center right;
padding-right: 16px;
padding-bottom: 4px;}
.mainNav ul li.expandable li.expandable > a /* flyout */ {
background-image: url("/assets/sites/aiimconference/www/conf2013/styles/css_img/layout/flyout.png") !important;
background-repeat: no-repeat;
background-position: 95% 50%;
. mainNav{
margin: 0 auto;
text-align: center;
background: #007287 url(/assets/sites/aiimconference/www/conf2013/images/layout/main- nav-bkgd.jpg) repeat-x bottom;
font-family: franklin-gothic-urw-condensed, arial, sans-serif;
font-size: 20px;
line-height: 20px;
text-transform: uppercase;
margin-top: 30px;
.mainNav ul ul li:hover > a {
background-color:#006372;}
.mainNav span {
display:block;
position:absolute;
right:9999px;
top:-35px;}
.mainNav ul li:hover > ul {
left:-1px;
top:30px;
z-index:-1;}
.mainNav ul ul li:hover > ul {
left:100%;
top:auto;
margin-top:-31px; /*margin-left:-10px;*/
z-index:10;}