jQuery Mobile交互式链接,标题和描述MVC

时间:2022-12-12 20:35:53

I am trying to have an interactive list element with a title and description.

我想要一个带有标题和描述的交互式列表元素。

I have an action link and a p tag.

我有一个动作链接和一个p标记。

 <li>@Html.ActionLink((string)Model.Date.ToShortDateString(), "Details", new { id = Model.id})
  <p style="padding-left: 15px;">@Model.RecordType</p>
 </li>

Is it possible to also make the description 'clickable'? The title is in the correct place, but if the user were to touch the description on accident, it would not trigger the action link.

是否也可以使描述“可点击”?标题位于正确的位置,但如果用户在事故中触摸描述,则不会触发操作链接。

This li is enclosed in a <ul data-role="listview">

这个li包含在

1 个解决方案

#1


0  

The problem was when I was testing it in a browser. When testing on a mobile device, this problem does not exist.

问题是当我在浏览器中测试它时。在移动设备上进行测试时,此问题不存在。

#1


0  

The problem was when I was testing it in a browser. When testing on a mobile device, this problem does not exist.

问题是当我在浏览器中测试它时。在移动设备上进行测试时,此问题不存在。