• 解決済 hhnnn

    (@hhnnn)


    固定ページ上でメールフォームを設置するとPタグの空白が入り、フォームが下のほうになることがあります。

    空白が入らないフォーム

    <table>
    <tr>
    <th>お名前<span style=”color: red;”>※必須</span></th>
    <td>[text* name placeholder “石川 太郎”]</td>
    </tr>
    <tr>
    <th>電話番号<span style=”color: red;”>※必須</span></th>
    <td>[tel tel placeholder “000-000-0000”]</td>
    </tr>
    <tr>
    <th>メールアドレス</th>
    <td>[email* email placeholder akismet:author_email “example@co.jp”]</td>
    </tr>
    <tr>
    <th>***<span style=”color: red;”>※必須</span></th>
    <td>[checkbox* file-236 exclusive “*” “*” “*” “*” “*” “*” “特になし”]</td>
    </tr>
    <tr>
    <th>お問い合わせ内容<span style=”color: red;”>※必須</span></th>
    <td>[textarea textarea-Inquiries placeholder “質問です…”]</td>
    </tr>
    </table>

    空白が入るフォーム

    <table>
      <tr>
        <th>貴社名<span style=”color: red;”>※必須</span></th>
        <td>[text* conpany placeholder “*”]</td>
      </tr>
      <tr>
        <th>担当者名<span style=”color: red;”>※必須</span></th>
        <td>[text* your-name placeholder “*”]</td>
      </tr>
      <tr>
        <th>お電話番号<span style=”color: red;”>※必須</span></th>
        <td>[tel* tel placeholder “076-244-7766”]</td>
      </tr>
      <tr>
        <th>住所<span style=”color: red;”>※必須</span></th>
        <td>[text* Address placeholder “*”]</td>
      </tr>
      <tr>
        <th>メールアドレス<span style=”color: red;”>※必須</span></th>
        <td>[email* email placeholder “example@co.jp”]</td>
      </tr>
      <tr>
        <th>お問い合わせ内容<span style=”color: red;”>※必須</span></th>
        <td>[textarea* content placeholder “*”]</td>
      </tr>
    </table>

    以上よろしくお願いします。

2件の返信を表示中 - 1 - 2件目 (全2件中)
  • そのインデントは実際も全角文字になっているのでしょうか。

    それでしたら、インデントは文字として扱われますから、半角スペースかタブにしてください。

    トピック投稿者 hhnnn

    (@hhnnn)

    インデントを全て無くしたら解決しました。

    ありがとうございました。

2件の返信を表示中 - 1 - 2件目 (全2件中)

トピック「固定ページ上の空白」には新たに返信することはできません。