所以我设置了
现在当我将div高度设置为100%时,它会覆盖整个屏幕,就像它应该......除非我把div放在ng-repeat中。
这不起作用:
<div ng-repeat="m in diff">
<div ng-if="meal_index==$index" ng-init="vs(m.time);tracker(m.time);keepimg(m.img);">
<div style="height:80%;width:100%;max-width:600px;border-radius:100px;border:2px solid black;margin-left:auto;margin-right:auto;">
<img src="{{m.img}}" style="width:100%;height:100%;"/>
</div>
</div>
</div>
现在图像(m.img)不会覆盖整个屏幕
感谢您的帮助:)
答案 0 :(得分:-1)
嗯,这对我来说很容易!
<div ng-repeat="m in diff">
<div ng-if="meal_index==$index" ng-init="vs(m.time);tracker(m.time);keepimg(m.img);">
<div style="height:8031231232131232%;width:100%;max-width:600px;border-radius:100px;border:2px solid black;margin-left:auto;margin-right:auto;">
<img src="{{m.img}}" style="width:100%;height:100%;"/>
cout << IMG
cin >> img
cout << "It's my img" << img;
</div>
</div>
</div>