English 中文(简体)
j Query “Cycle” plugining content to not central, how can I fix this?
原标题:jQuery "Cycle" plugin causing content to not center, how can I fix this?

I m试图使用j Query “Cycle” plugin(http://jquery.malsup.com/illi/)来轮换位于<span>s......然而,假肢造成我的内容不集中。 昨天上午,有人在这里指出<代码><span>ssssss.(职务:绝对值,最高:0,左:0})hide()。

我不知道联合材料,我也不知道我仍在超文本/特别安全局工作,因此,我希望有人在这里知道这样做的固定点,并能够帮助我。 如果不是 好的话:

我曾尝试添加<代码>left:50%,尽管其中心,但幻灯片被打破,我所有的<代码>和字典;span>一度出现。

[Edit]

这里有“超文本”和“CSS”:

<div class="slideshow">
<span style="font-size:12px; color:#333333; font-family:Lucida Grande,Lucida Sans Unicode,Calibri,Arial,sans-serif;">Hi</span>
<span style="font-size:12px; color:#333333; font-family:Lucida Grande,Lucida Sans Unicode,Calibri,Arial,sans-serif;">Goodbye</span>
</div><br />

.slideshow {
width:940px;
height:64px;
text-align:center;
background-image:url(../images/quotes.png);
}

一切都按计划进行。 接着,我添加了 j子/花 the:

// set position and zIndex on all the slides
    $slides.css({position:  absolute , top:0, left:0}).hide().each(function(i) {
        var z;
        if (opts.backwards)
            z = first ? i <= first ? els.length + (i-first) : first-i : els.length-i;
        else
            z = first ? i >= first ? els.length - (i-first) : first-i : els.length-i;
        $(this).css( z-index , z)
    });

这正是它所言。 如同现在一样,<代码>与设计;span>s在时间上和时间上都显示出来,但案文由于绝对位置而更重。 因此,我修改了<条码>。 问题已解决的文本被集中处理,但全国住户调查除外,所有时间都同时显示,而且没有出现漏损。

最佳回答

如果没有该法典,那就很难说,但我假定证词属于某种障碍。 如果您适用<代码>:与该元素有关的<>代码>,则绝对位置为<代码><span>s。 你们不要真正地将任何立场风格运用到时代本身,而是把这种方式留给gin。

帮助的希望


http://www.ohchr.org。

Okay试图这样做:

.slideshow {
    width:940px;
    height:64px;
    background-image:url(../images/quotes.png);
    position:relative;
    }

.slideshow span {
    display:block;
    }

您可能需要人工确定<代码><spans>的宽度,并与<代码>div.slideshow的宽度相匹配。

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签