我认为策展人脚本决定了CSS的大小,但我不能完全正确。
在此jsfiddle中,您将看到:
GridLayoutManager.LayoutParams
直接在网站上查看可能会更容易:
https://jsfiddle.net/supplement/fmjrvsze/1/
显示内容的顶部两个YouTube视频带有Read more
按钮,底部两个完全展开。
我希望页面上的全部四个(即使在您使用Next
按钮的情况下也都可以完全展开,而根本没有Read more
按钮。
我曾尝试将padding-top
从4em
调整为0em
,但我几乎完全正确,但是仍然有一些透明的雾霾。
.crt-post-v2.crt-post-max-height .crt-post-max-height-read-more {
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
padding-bottom: 0.5em;
padding-top: 4em;
margin: 0em;
background: transparent;
background: -webkit-gradient(left top, left bottom, color-stop(0%, transparent), color-stop(50%, #efefef));
background: linear-gradient(to bottom, transparent 0%, #efefef 50%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#000000', GradientType=0);
}
不再做太多前端或移动开发,因此将不胜感激。请帮助。
我希望他们都像这样:
答案 0 :(得分:2)
我认为您要做的就是删除display:block;然后将新的max-height设置为适当的值。 600px之类的
答案 1 :(得分:2)
您必须在CSS中更改以下值:所有类别为max-height
的元素的min-height
和.crt-post-c
值和所有类别为{{1 }}如下:
display
这里是 CodePen 。 我希望这就是你想要的。
答案 2 :(得分:1)
存在一种内联def openCharsToFile(gameChars):
with open("characterFile.json") as read_file:
y = json.load(read_file)
for x in y:
gameChars.append(x)
for z in gameChars:
print(z.getStats())
样式,这是导致这种情况的原因。
这是完整的解决方案。看看下面的codepen。
https://codepen.io/onejeet/pen/NEMxVe
max-height:316px