Css 缺少ngx库宽度和高度选项
我想知道,如何给ngx画廊()一个新的高度。它的固定值为500px,更改父divs高度不会改变任何内容 我在模板中寻找这样的属性Css 缺少ngx库宽度和高度选项,css,angular,ngx-gallery,Css,Angular,Ngx Gallery,我想知道,如何给ngx画廊()一个新的高度。它的固定值为500px,更改父divs高度不会改变任何内容 我在模板中寻找这样的属性 <gallery [height] = '250px'> </gallery> 将类添加到galery元素 <div class="basic-container"> <h2>Gallery component</h2> <gallery class=&quo
<gallery
[height] = '250px'>
</gallery>
将类添加到galery元素
<div class="basic-container">
<h2>Gallery component</h2>
<gallery class="custom"
[items]="items"
[dots]=true
[thumb]=false
[loop]=false
[playerInterval] = 5000
[autoPlay]=true
[loadingStrategy]=preload>
</gallery>
</div>
你是把这个css代码放在style.css里面而不是组件css里面吗?我两个都试过了,似乎有一些css框的新实例被创建了,较小的版本正在从viewportI添加的answer@connectedMind check it中向左滑动。是的,看起来我没有试过这个简单的可能性,gallery{height:200px}也在工作。。。应该多睡一会儿:)
<div class="basic-container">
<h2>Gallery component</h2>
<gallery class="custom"
[items]="items"
[dots]=true
[thumb]=false
[loop]=false
[playerInterval] = 5000
[autoPlay]=true
[loadingStrategy]=preload>
</gallery>
</div>
.custom{
height:200px;
}