hereに行き、サムネイルをクリックすると、いずれかのタグに問題が表示されます。あまりにも多くのテキストとoverfowを持つタグについては、それはスクロールバーに入れていない。最初の部分、タイトルは、1つの提出物ごとに異なるので、私は固定幅を置くことができません。div-overflowのテキストが溢れています:自動では機能しません
必要なときにスクロールする部分のCSSです。
#scroll-pane{
left: -3px;
position: relative;
width: 100%;
overflow: auto;
font-family:helvetica;
font-size:11px;
color:#fff;
}
私はこれがあなたのために簡単な質問だと確信しています。
はPeeHaa:
(function($) {
$('#tag_info1').each(function() {
var container = $(this);
var total_height = container.height();
var content_height = parseInt($('span.tag_title', container).outerHeight(true), 10) + parseInt($('span.tag_submission', container).outerHeight(true), 10);
var p_height = 0;
p_height+=parseInt($('span.tag_submission_text', container).css('padding-top'), 10);
p_height+=parseInt($('span.tag_submission_text', container).css('padding-bottom'), 10);
p_height+=parseInt($('span.tag_submission_text', container).css('margin-top'), 10);
p_height+=parseInt($('span.tag_submission_text', container).css('margin-bottom'), 10);
p_height+=parseInt($('span.tag_submission_text', container).css('borderTopWidth'), 10);
p_height+=parseInt($('span.tag_submission_text', container).css('borderBottomWidth'), 10);
$('span.tag_submission_text', this).height(total_height-content_height-p_height);
});
})(jQuery);
は鉱山で動作するようにそれを取得しようとしましたが、無駄:(
私は何かが欠けていると思う...私は私のCSSでそれを持っています。あなたはそれが他の要素にあるべきであることを意味しますか? –
ああ、そうだ。段落部分だけがスクロールバーに追加されます。これは実行可能ですか? –
@ MarkLyons私は私の質問で述べたように、段落に高さを付けてください。 – PeeHaa