使用jquery mobile设置RSS提要的样式

使用jquery mobile设置RSS提要的样式,jquery,cordova,mobile,rss,jfeed,Jquery,Cordova,Mobile,Rss,Jfeed,我正在用PhoneGap编写一个iPhone应用程序。我正在尝试解析一个Facebook RSS提要,并使用jFeed来解析它。我获取提要,并可以将其显示给用户。但是,在设计RSS提要的样式以使其看起来更好(使用JQuery Mobile CSS属性)时,它没有考虑这些属性(ul和li标记)。 有没有一种方法可以使用jquerymobile设置RSS提要的样式? 以下是我正在使用的代码(index.html): 奥登西亚酒店 jQuery(函数(){ jQuery.getFeed({ 网址:'

我正在用PhoneGap编写一个iPhone应用程序。我正在尝试解析一个Facebook RSS提要,并使用jFeed来解析它。我获取提要,并可以将其显示给用户。但是,在设计RSS提要的样式以使其看起来更好(使用JQuery Mobile CSS属性)时,它没有考虑这些属性(ul和li标记)。 有没有一种方法可以使用jquerymobile设置RSS提要的样式? 以下是我正在使用的代码(index.html):


奥登西亚酒店
jQuery(函数(){
jQuery.getFeed({
网址:'http://www.facebook.com/feeds/page.php?id=360453900718092&format=atom10',
成功:功能(提要){
var html='';
对于(变量i=0;i”
+“
  • ” +项目.说明 +“
  • ”; } html+=html+''; jQuery('#result').append(html); } }); }); 测试RSS

    div
    直接内部
    ul
    是不正确的HTML结构

    <ul data-role="listview" data-theme="d" data-divider-theme="d">
      <div id="result"></div>
    </ul>
    
    关于jquery mobile中listview的更多信息

    参考资料:

    非常感谢!我使用了您提供的代码,现在可以使用;)
    <ul data-role="listview" data-theme="d" data-divider-theme="d">
      <div id="result"></div>
    </ul>
    
    <ul id="result" data-role="listview" data-theme="d" data-divider-theme="d">
    </ul>
    
    $('#result').append(html);
    $('#result').listview("refresh");