我正在尝试添加post embeds tumblr提供给个别灯箱/弹出窗口。这几乎是有效的,但问题是有时嵌入会溢出div.lighters但会保持在div#cboxLoadedContent
我不知道在这种情况下什么构成相关代码,但我会尽力而为。
HTML
private void PlaceItems()
{
foreach (CalendarItem item in _items)
{
//if (calendar1.ViewIntersects(item))
//{
calendar1.Items.Add(item);
//}
}
}
然而,经过后处理的html(因为我使用的是灯箱)是
<div style="display:none;">
...
<div id="bird" class="lighters">
<div class="tumblr-post" data-href="https://embed.tumblr.com/embed/post/rmk5cWt002YFR1zbW4hp6w/115015084199" data-did="74b578aacc18a67bdeab9220d4b3ca90d1897f21"><a href="http://bychloethemes.tumblr.com/post/115015084199/bird-theme-made-by-chloe-themes-preview-1">http://bychloethemes.tumblr.com/post/115015084199/bird-theme-made-by-chloe-themes-preview-1</a></div><script async src="https://secure.assets.tumblr.com/post.js"></script>
</div>
</div>
和CSS
<div id="cboxLoadedContent">
<div id="bird" class="lighters">
<div class="tumblr-post" data-href="https://embed.tumblr.com/embed/post/rmk5cWt002YFR1zbW4hp6w/115015084199" data-did="74b578aacc18a67bdeab9220d4b3ca90d1897f21"><a href="http://bychloethemes.tumblr.com/post/115015084199/bird-theme-made-by-chloe-themes-preview-1">http://bychloethemes.tumblr.com/post/115015084199/bird-theme-made-by-chloe-themes-preview-1</a></div><script async src="https://secure.assets.tumblr.com/post.js"></script>
</div>
</div>
该博客为http://bychloethemes.tumblr.com,您需要点击代码标签,然后一直滚动到底部,然后点击“更多”&#39;关于鸟类的观察主题
提前致谢
答案 0 :(得分:0)
感谢Matt Stephens,我将最大高度从.lighters
移到#cboxLoadedContent
的样式,现在工作正常。