English 中文(简体)
Chrome和Sato横向j Carousel增加<li>
原标题:Empty additional <li> in horizontal jCarousel in Chrome and Safari

Chrome和Sato(Webkit发动机)在<代码><li>上添加2个字句,添加到<代码><ul>上列有舱单-单-单-项目持有人的清单。 我怎么能去掉呢? j FF、IE和OM中的卡塞尔是大韩民国。

得到帮助。

最佳回答

就我而言,我增加了以下两点:

<script type="text/javascript">

       jQuery(document).ready(function () {
           jQuery( #mycarousel ).jcarousel();
       });

</script>

I removed the one block and it worked for me.

问题回答

I ve seen this problem occur in Safari when jcarousel is called twice on the same ul - if you are working with a CMS this can be easy to do as jcarousel could be called by a module function (e.g. jcarousel_add() with Drupal s jcarousel module), a js file included by your own module code, in a template file etc. It s worth excluding this as a possibility by commenting out the call you are working with

我也存在这个问题,最后是我最后的<密码>li。 标签被意外写成<代码><li>,而不是适当的</li>,从而使浏览器成为额外的空壳。

我发现,在任何<代码><li>上添加“显示:none”和“jcarousel-item-place持有人”的 c。

  1. 查阅你的jcarousel.min.js案

  2. 看看(对我来说,Line 249):if(h.length=0){ h=this.create(e).addClass(这里的“jcarousel-item-placeholder”)

  3. Directly after this with no spaces add: .css({ "display":"none"}).attr("jcarouselindex",c);

  4. Check、Sato、IE和FF等所有公司都应按预期工作:两个空洞的<代码><li等级=......jcarousel-item-place holder... ></li>。

我的jcarousel.min.js的法典部分:

Line 248...
if(h.length===0){
h=this.create(e).addClass(this.className("jcarousel-item-placeholder"))

//Code to add start
.css({
"display":"none"
}).attr("jcarouselindex",c);
//Code to add end

if(j.length===0)this.list.prepend(h);else j[d?"before":"after"](h);
if(this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size))j=this.get(this.index(e)),j.length&&(h=this.add(e,j.clone(!0)))
}
j=h;

Make sure your tag has defined height and width attributes like so

<img src="images/test.png" height="100" width="100" alt="test" />

我有类似的问题,有几个小卡尔-小项目门出现在清单项目上,我没有在座标上确定宽度。 我认为,OMM已经准备好,但图像尚未装上,因为车上没有出现窗户。 如果不宣布图像的宽度,jcarousel在窗户装满之前就无法正确计算出宽度,在这种情况下,似乎插入了持单人物品。





相关问题
Font Rendering between Mozilla and webkit

I m not sure if this has anything to do with the recent Safari update, but I m beginning to notice this a lot. There is a drastic difference in the way each browser is rendering fonts. for instance, ...

How i can track Safari activity from my application

I have to develop an application to monitor Safari activity like all open url , tabs on particular window and loding time of particular url. I also need to track online streaming that is happening on ...

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

How to get a flash url in a webpage using a webframe?

As we know , When we load frame from webpage of safari, we will invoke the delegate methods of webkit informal protocol(WebFrameLoadDelegate): webView:didStartProvisionalLoadForFrame: webView:...

热门标签