使用jQuery Mobile的多行Listview项

Jak*_*Lnr 0 listview multiline listviewitem jquery-mobile

我无法弄清楚如何在jQuery Mobile中执行多行列表视图项目,如下图所示(一些额外的信息......)

图片:https: //lh3.googleusercontent.com/-GSNEPObTo2c/T4m9GbfAcgI/AAAAAAAABec/fot1TgehC6w/s279/Bildschirmfoto%25202012-04-14%2520um%252020.01.37.png

有任何想法吗?

非常感谢,雅各布

Rya*_*yan 6

如果您的li商品使用以下格式:

<li>
    <a href="first.html">
      <h3>First line</h3>
      <p>Whatever goes on the second line</p>
    </a> </li>
Run Code Online (Sandbox Code Playgroud)

然后将以下内容添加到CSS:

.ui-li-desc {white-space:normal;}?
Run Code Online (Sandbox Code Playgroud)

举个例子,看看这个jsFiddle.