0
<body ng-app="myApp" ng-controller="myCtrl">
<div ng-show = "dataFromRest" ng-repeat = "x in dataFromRest.posts" >
<div class="tittle" style="width: 25%;">
<a href="" ng-click="showDiv = ! showDiv" style="text-decoration: none;" ># {{x.title}} </a>
<a href="" style="text-decoration: none;" ng-if="!x.title"># No title</a>
<hr style="color: red">
</a>
</b>
</div>
<div class="text">
<div style="width: 70% ;float:right; background-color: white;">
<div ng-show="showDiv">
<div style="float: right;">
<img id="currentPhoto" src="{{x.thread.main_image}}" onerror="this.src='noimageavailable.png'" width="300px" height="250px" style="float: right;">
</div>
<div style="color: purple;text-align: center;font-size:21px">
{{x.title}}
</div><br>
<div>
{{x.text}}
</div>
<b>
URL:-
</b>
<a href="{{x.url}}" style=" color: blue;"> To see in details, click here! </a><br> <br>
</div>
</div>
</div>
</div>
我正在使用新闻Feed模块。我有两个div,在第一个div(左侧)显示所有新闻标题列表,在右侧div显示关于该标题的描述和图像。但我无法在左侧div上添加垂直滚动条(title-div),如果我应用div,那么它会转到每个特定的标题only.and第二个是页面加载第一个标题时,说明会自动加载,所以如何做到这两件事?无法在html中添加垂直滚动条?