Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个 DataTables 控制表,其中一列中的单元格包含几个图像链接元素(<image>元素中包含的<a>元素)。我的问题是每个链接都显示在其单元格内的新行上。我可以以某种方式强制链接显示在一行上吗?
<image>
<a>
我以一种不完美的方式解决了这个问题。我将列宽指定为足够大以将两个图像保存到 DataTables,如下所示:
$(document).ready(function () { $('#table').dataTable({ 'aoColumnDefs': [{'sWidth': 44, 'aTargets': [-1]}] }); });