简体   繁体   English

Firefox和chrome中的页面无法正确显示ul

[英]page in Firefox and chrome not displaying the ul correctly

I made changes to a page www.redsandsafaris.com and after the changes the right sidebar is not showing the images from the css style sheet. 我对www.redsandsafaris.com进行了更改,更改后右侧栏未显示css样式表中的图像。 if you navigate to the german translation, redsandsafaris.de it uses the exact same information and it is working properly. 如果您导航至德语翻译, redsandsafaris.de会使用完全相同的信息,并且工作正常。 It displays perfectly in IE and safari, but not in Chrome and Firefox. 它在IE和Safari中完美显示,但在Chrome和Firefox中却不完美。 What am I missing here! 我在这里想念什么!

<div id="mainrcolIndex">
  <ul>
    <li class="profmain_location">
      <a href="pages/profileMain.html"
         alt="Hunting farms and hunting areas"
         title="Here are your hunting farms and hunting areas in Namibia">
        Hunting Guides & Farms
      </a>
    </li>
    </li>
  </ul>
</div>

' '

#mainrcolIndex ul { list-style-type: none; } 
#mainrcolIndex ul li { } 
#mainrcolIndex ul a { 
  display: block; 
  text-decoration: none; 
} 

li.profmain_location a { 
  height: 45px; 
  width: 240px; 
  float: left; 
  background-image: url(../images/profmain_location.jpg); 
  background-repeat: no-repeat; 
  background-position: right; 
  text-indent: -3000px; 
} 

li.profmain_location:hover a { 
  float: left; 
  height: 45px; 
  width: 240px; 
  background-image: url(../images/profmain_location.jpg); 
  background-repeat: no-repeat; 
  background-position: left; 
} 

Hard to tell from the amount of code you have posted but: 从您已发布的代码量很难看出来,但是:

You close your <li> twice </li></li> this will not help 你闭上你的<li>两次</li></li>这将不利于

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM