gpt4 book ai didi

css - 自定义彩框标题(长标题及其位置)

转载 作者:行者123 更新时间:2023-11-28 08:36:53 25 4
gpt4 key购买 nike

请看这个link例如。

如何在弹出窗口下添加长标题?例如,添加如下 3 行:

enter image description here我们可以在标签的标题中添加一行,我试图改变这种风格

#cboxTitle {
position: absolute;
bottom: -25px;
left: 0px;
text-align: center;
width: 100%;
font-weight: bold;
color: #7C7C7C;

}通过添加高度或 top:800px,标题消失

最佳答案

这个解决方案似乎对我有用:

$(document).bind('cbox_complete', function(){
var cboxTitleHeight = $('#cboxTitle').height();
var cboxContentHeight = $('#cboxContent').height();
var cboxWrapperHeight = $('#cboxWrapper').height();
var colorboxHeight = $('#colorbox').height();

$('#cboxMiddleLeft, #cboxMiddleRight, #cboxContent').css('height', (cboxContentHeight + cboxTitleHeight) + 'px');
$('#cboxWrapper').css('height', (cboxWrapperHeight + cboxTitleHeight) + 'px');
$('#colorbox').css('height', (colorboxHeight + cboxTitleHeight) + 'px');
});

我也找到了这个解决方案 https://gist.github.com/eddyyanto/1620742 , 但似乎不适用于 colorbox 的 v.1.5.x。

关于css - 自定义彩框标题(长标题及其位置),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22244434/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com