简体   繁体   English

list-style:没有灯箱不工作?

[英]list-style: none lightbox is not working?

So there's an issue. 所以有一个问题。
If you view this .htm page you see that image. 如果您查看此.htm页面,则会看到该图像。 http://icpy.webs.com/text/Mass.htm http://icpy.webs.com/text/Mass.htm
The problem is originally there was a bullet decorator which was the list-style . 问题是最初有一个子弹装饰器,它是list-style The lightbox image was working. 灯箱图片正在运行。 When I applied the List-style-type: none , my image wasn't working when I clicked on it. 当我应用List-style-type: none ,单击它时我的图像不起作用。 Did I do something wrong? 我做错什么了吗?

是的,您在该页面上有javascript错误,这将阻止它工作。

"NetworkError: 404 Not Found - http://icpy.webs.com/text/.http://icpy.webs.com/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"

Your html is all messed up. 你的HTML搞砸了。

<div id="cas> <ul> <li><a class=" title="Mass Sale layouts" href="#inlineframe" fancybox"="">
   <img src="http://dgamerhelp.webs.com/soccer/layouts/BEA01.png">
   <div id="inlineframe" style="width:1040px;height:785px;display: none;">
</div>
  1. Close the id tag of div like : div id="cas" 关闭div的id标签,如:div id =“cas”
  2. Close the <li> tag 关闭<li>标签
  3. Close the <ul> tag 关闭<ul>标签
  4. Close the main div correctly. 正确关闭主div。
  5. If you are not using a class for <a> tag, then remove it completely ( <a class=" ) 如果您没有为<a>标签使用类,则将其完全删除( <a class="

Fixing the above things should solve your issue. 修复上述问题应该可以解决您的问题。 Im surprised, it actually worked first time.. 我很惊讶,它实际上第一次工作..

Cleaned up code should look something like this : 清理代码看起来应该是这样的:

<div id="cas"> 
    <ul> 
        <li>
            <a class="" title="Mass Sale layouts" href="#inlineframe" fancybox"=">
                <img src="http://dgamerhelp.webs.com/soccer/layouts/BEA01.png">
                <div id="inlineframe" style="width:1040px;height:785px;display: none;">Whatever that needs to go here.
                </div>
            </a>
        </li>    
    </ul>
</div>

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

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