Listview中不显示按钮

时间:2015-12-18 10:50:50

标签: html listview

按钮未显示在列表分区中的容器中。 我做错了什么?

这里是我的代码:

<body>
       <h2>Discussions
       </h2>
       <div class="container" id = "form-container">
           All Discussions
           <div class="list-group" style="margin-top: 3%">
               <li class="list-group-item" >
                   <span class="label label-default label-pill pull-xs-right">{{discussion.UserID}}</span> <br>
                   {{ discussion.Query }}
               </li>
               <li class="list-group-item"  >
                   <textarea id = "query" name = "query" ng-model = "query" class = "form-control" placeholder="here"/>
               </li>
               <li>
                   <button type="button" class="btn btn-default">Close</button>
               </li>

           </div>
           <button type="button" >Close</button>
       </div> 
</body>

1 个答案:

答案 0 :(得分:0)

Textarea不是一个自动关闭的标签。它应该重写为

<textarea></textarea>

因此,关闭textarea标签,您将能够看到按钮。

<body>
       <h2>Discussions
       </h2>
       <div class="container" id = "form-container">
           All Discussions
           <div class="list-group" style="margin-top: 3%">
               <li class="list-group-item" >
                   <span class="label label-default label-pill pull-xs-right">{{discussion.UserID}}</span> <br>
                   {{ discussion.Query }}
               </li>
               <li class="list-group-item"  >
                   **<textarea id = "query" name = "query" ng-model = "query" class = "form-control" placeholder="here"></textarea>**
               </li>
               <li>
                   <button type="button" class="btn btn-default">Close</button>
               </li>

           </div>
           <button type="button" >Close</button>
       </div> 
</body>