我有一个md- list,列表中的每一项都可以有任意的水平长度:

可以看出,较长的项目正在从右侧被削减。我使用了以下代码:
<md-list-item ng-repeat="element in standard_xsd_elements track by $index" ng-click="null">
<p style="white-space: pre;"> {{element}} </p>
</md-list-item>有没有办法为每个长项目显示滚动条(而不是那些被切断的项目)?
发布于 2017-02-01 13:53:06
试试这个:
<p style="white-space: pre; overflow-x: scroll;"> {{element}} </p>https://stackoverflow.com/questions/41972732
复制相似问题