Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.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
Html 爱奥尼亚卷轴留下了一些额外的宽度_Html_Css_Angularjs_Ionic Framework_Ionic View - Fatal编程技术网

Html 爱奥尼亚卷轴留下了一些额外的宽度

Html 爱奥尼亚卷轴留下了一些额外的宽度,html,css,angularjs,ionic-framework,ionic-view,Html,Css,Angularjs,Ionic Framework,Ionic View,我有一个显示一系列产品名称的ion滚动条,问题是当我水平滚动时,滚动条比需要的长,我的意思是我可以滚动到看不到任何产品为止 下面是我留下的代码: <ion-scroll direction="x" class="brand-bar-scroll"> <div class="brand-bar-wrapper"> <a class="btn cstm-btn brand-item" ng-repeat="brand in brands" ng-cl

我有一个显示一系列产品名称的ion滚动条,问题是当我水平滚动时,滚动条比需要的长,我的意思是我可以滚动到看不到任何产品为止

下面是我留下的代码:

<ion-scroll direction="x" class="brand-bar-scroll">
    <div class="brand-bar-wrapper">
      <a class="btn cstm-btn brand-item" ng-repeat="brand in brands" ng-click="setBrand(brand)">{{brand.name}}</a>
    </div>
</ion-scroll>

{{brand.name}

我怎样才能修好它?我应该正确设置宽度。

你特别说过它有效。。。那你为什么问我们这个问题?@Dsafds我硬编码了宽度,没有一个解决方案适用于所有情况,这只是一个例子,不是一个解决方案。我编辑是为了不混淆。