【发布时间】:2018-05-27 03:28:30
【问题描述】:
我想在表格中隐藏一些信息,就像使用
<input type="password" placeholder="password">
但在这种情况下,在我的一张桌子的<td> 中。
有没有可能像input那样简单?
【问题讨论】:
标签: html html-table passwords
我想在表格中隐藏一些信息,就像使用
<input type="password" placeholder="password">
但在这种情况下,在我的一张桌子的<td> 中。
有没有可能像input那样简单?
【问题讨论】:
标签: html html-table passwords
把这个放在td里面,td和input会一直隐藏
<input type="hidden" placeholder="test">
【讨论】:
试试这个,效果很好:
.hidetext { -webkit-text-security: disc; /* Default */ }
<table>
<tr>
<td class="hidetext">text to hide</td>
</tr>
</table>
您也可以使用以下之一:
.hidetext { -webkit-text-security: none; }
.hidetext { -webkit-text-security: circle; }
.hidetext { -webkit-text-security: square; }
【讨论】: