-2
我的问题是,我的锚超过iphone 5显示表格单元格。如何让锚点不超过表格单元格宽度?
我有这个作为细胞white-space: nowrap;
对于锚我只是有一个背景颜色的样式:background: #f88e1e;
莫非你的意见吗?
<table class="subscriptionTable">
<thead>
<tr>
<th class="feature"></th>
<th class="free">free</th>
<th class="middle">silver</th>
<th class="top">gold</th>
</tr>
</thead>
<tbody>
<tr>
<td class="feature"><a href="somelink"></a>linktarget</td>
<td></td>
<td></td>
<td><span class="icon-tick"></span></td>
</tr>
<tr>
<td class="feature"><a href="somelink"></a>linktarget</td>
<td></td>
<td></td>
<td><span class="icon-tick"></span></td>
</tr>
<tr>
<td class="feature"></td>
<td>
</td>
<td></td>
<td>
<a class="someClass" href="somelink">Free trial</a>
</td>
</tr>
</tbody>
</table>
我已经成功让文字在一行中加入white-space: nowrap
但现在的锚宽度超过单元格的宽度。锚点必须留在里面......
请问您可以包括您的代码和一些上下文吗?在数百万种可能性之间给出答案是不可能的 – Devin 2014-09-25 19:08:25