angular.js - How to make the image automatically wrap and display when it encounters the edge of the parent container without overflowing
天蓬老师
天蓬老师 2017-05-15 16:57:20
0
1
1883
        <p class="item">
           <img ng-src="{{file.path}}" ng-repeat="file in fileList" ng-click="goToViewFile()" class="avatar" style="width: 100px;height: 100px;padding: 5px">
        </p>
        

The final display result is as follows:

Of the 6 pictures in total, 2 are obviously overflowing and cannot be displayed
Please tell me how to set the style so that the overflowing images can be displayed in new lines

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
phpcn_u1582

Please post your css style code:

You can try using style="float:left" in the <img> tag

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template