这是一个简单的示例,其中<pre>
标签似乎按预期工作。
<!DOCTYPE html>
<html>
<head>
<link data-require="bootstrap-css@3.0.2" data-semver="3.0.2" rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" />
<link data-require="jqueryui@*" data-semver="1.10.0" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.0/css/smoothness/jquery-ui-1.10.0.custom.min.css" />
<link rel="stylesheet" href="footable.core.css" />
<script data-require="jquery@*" data-semver="2.0.3" src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script data-require="jqueryui@*" data-semver="1.10.0" src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.0/jquery-ui.js"></script>
<script data-require="bootstrap@*" data-semver="3.0.2" src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>
<script src="footable.js"></script>
</head>
<body>
<table class="table demo default footable" data-filter="#filter" data-filter-text-only="false">
<thead>
<tr>
<th data-toggle="true" class="footable-first-column">Col 1</th>
<th>Col 2</th>
<th data-hide="phone,tablet">Col 3</th>
</tr>
</thead>
<tbody>
<tr class="" style="display: table-row;">
<td></td>
<td>
<pre>{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}}</pre>
</td>
<td>Blah Blah Blah</td>
</tr>
<tr class="" style="display: table-row;">
<td></td>
<td>
<pre>{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}}</pre>
</td>
<td>Blah Blah Blah</td>
</tr>
<tr class="" style="display: table-row;">
<td></td>
<td>
<pre>{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}}</pre>
</td>
<td>Blah Blah Blah</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
$(function() {
$('table').footable();
});
</script>
</body>
</html>
这是一个证明这一点的 plunk:http: //plnkr.co/edit/qlKxfddZV7RYGISQkNWW
如果这不是您所需要的,也许您可以在问题中添加更多细节。