【问题标题】:Table cells as a password type表格单元格作为密码类型
【发布时间】:2018-05-27 03:28:30
【问题描述】:

我想在表格中隐藏一些信息,就像使用

<input type="password" placeholder="password">

但在这种情况下,在我的一张桌子的&lt;td&gt; 中。 有没有可能像input那样简单?

【问题讨论】:

    标签: html html-table passwords


    【解决方案1】:

    把这个放在td里面,td和input会一直隐藏

    &lt;input type="hidden" placeholder="test"&gt;

    【讨论】:

      【解决方案2】:

      试试这个,效果很好:

      .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; }
      

      【讨论】:

      • 您仍然可以检查文本并查看其内容
      猜你喜欢
      • 2015-08-01
      • 2022-12-17
      • 1970-01-01
      • 2022-11-24
      • 1970-01-01
      • 2012-02-15
      • 2013-04-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多