why css is not apply on list using JQM in angular

南笙酒味 提交于 2019-12-24 02:25:25

问题


can you please tell me why my list is not display . I used this https://github.com/angular-widgets/angular-jqm here is the documenetation http://angular-widgets.github.io/angular-jqm/master/docs/#/api/jqm.directive:jqmListview

http://plnkr.co/edit/AfUQ5PGjKi12afqgFRfZ?p=preview

app.controller('loginCtrl', ['$scope', function(scope){
var friends = [
    {name:'John', age:25, gender:'boy'},
    {name:'Jessie', age:30, gender:'girl'},
    {name:'Johanna', age:28, gender:'girl'},
    {name:'Joy', age:15, gender:'girl'},
    {name:'Mary', age:28, gender:'girl'},
    {name:'Peter', age:95, gender:'boy'},
    {name:'Sebastian', age:50, gender:'boy'},
    {name:'Erika', age:27, gender:'girl'},
    {name:'Patrick', age:40, gender:'boy'},
    {name:'Samantha', age:60, gender:'girl'}
];
  scope.items=friends;
}])

is there any one idea how to add css ?

any body idea why css is not apply using JQM


回答1:


Take a look at this

Working Demo

<div data-role="header" data-position="fixed">
    <h1>Fixed Header!</h1>
</div>
<div data-role="content">
 <ul data-role="listview">
    <li><a href="acura.html">Acura</a></li>
    <li><a href="audi.html">Audi</a></li>
    <li><a href="bmw.html">BMW</a></li>
</ul>
</div>
<div data-role="footer" data-position="fixed">
    <h1>Fixed Footer!</h1>
</div>


来源:https://stackoverflow.com/questions/25679785/why-css-is-not-apply-on-list-using-jqm-in-angular

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!