English 中文(简体)
jcroll 潘基特高
原标题:jScrollPane set height

某些方面,即不掌握如何确定jScrollPane的高度。

http://tinyw.in/BLrg klick on communications 546. 现在,你们看着bar,手头.。 阁下认为,这很深。 怎么能把它当作大事呢? (600px)

它是一家UL公司,有一只 wrap子。 我把这个包裹的高度定在600px上,我尝试了几个 st子,但有些how不去工作。

这一四分之三后来被掩盖,即知道,我必须重新开始,但可能重要的是:

这是否应当达到它所附属要素的高度?

感谢!

如果新闻通讯被删除(见s ppl有点做),那么媒体就会产生新的信息。

最佳回答

我认为,按照逻辑,在您的<代码>内JScrollPane范围内行事。 前线。

var width = $( #elementsContainer ul ).width();
var height = $( #elementsContainer ul ).height();

$( #jScrollPane_Wrapper ).css({ height  : height,  width  : width});
$( #jScrollPane_Wrapper ).jScrollPane({
    height: 600
});

我认为,这可能会达到整个内容的高度(<ul>),从而造成你想要的错误高度。

或许会将其改为:

var height = $( #elementsContainer ).height();

既然如此,我认为,这是你想要的。

问题回答

暂无回答




相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

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.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签