Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 缺少ngx库宽度和高度选项_Css_Angular_Ngx Gallery - Fatal编程技术网

Css 缺少ngx库宽度和高度选项

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

我想知道,如何给ngx画廊()一个新的高度。它的固定值为500px,更改父divs高度不会改变任何内容

我在模板中寻找这样的属性

<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;
}