代码之家  ›  专栏  ›  技术社区  ›  dubafek

Wordpress文本块删除表单输入

  •  0
  • dubafek  · 技术社区  · 6 年前

    我正在编辑一个Wordpress网站,添加一个表单。我将把这个表单添加到纯html的文本块中。问题是当我去预览Wordpress时删除了输入标签。

    我试着找一个有同样问题的人,但什么也没找到。

    为什么会这样?

    这是我添加到文本块中的代码。输入标记消失。

    谢谢!

    <form id="form1" name="form1" method="post" action="http://test.cl/bridge.php">
    
    <table cellspacing="0" style="width:100%">
      <tbody>
        <tr>
          <td style="width:30%; text-align:center; border: 0px solid #ffffff;">
            User:
          </td>
          <td style="width:70%; text-align:center; border: 0px solid #ffffff;"> 
            <input name="nombre" type="text" id="inputNombre" placeholder="User" style="width:90%">
          </td>
        </tr>
        <tr>
          <td style="width:30%; text-align:center; border: 0px solid #ffffff;">
            Password:
          </td>
          <td style="width:70%; text-align:center; border: 0px solid #ffffff;">
            <input name="pass" type="password" id="inputPass" placeholder="Password" style="width:90%">
          </td>
        </tr>
        <tr>
          <td colspan="2" style="border: 0px solid #ffffff;">
            &nbsp;<br />
          </td>
        </tr>
        <tr>
          <td colspan="2" style="text-align:center; border: 0px solid #ffffff;">
            <input type="submit" name="Submit" value="Login" style="border: none !important; width:170px; padding:4px ; font-size:14px; font-weight:bold; background-color: #0CF; color:#069; border-radius:20px;">
            </td>
        </tr>
          <td colspan="2" style="border: 0px solid #ffffff;">
            &nbsp;<br />
          </td>
        <tr>
          <td colspan="2" style="text-align:center; border: 0px solid #ffffff;">
            <a href="http://test.cl/index.php">
              Forgot your password?
            </a>
          </td>
        </tr>
      </tbody>
    </table>
    </form>
    0 回复  |  直到 6 年前