ソリューション: https://webdesign.tutsplus.com/tutorials/building-responsive-forms-with-flexbox--cms-26767ボタンタイプ= "submit"をHTMLにリンクするには?このページから借り
私は、リスト内のボタンがあります。
<form>
<ul>
<li>
<a href="account.html" class="button">
<button type="submit">Submit</button>
</a>
</li>
</ul>
</form>
は、私はこのコードを試してみました:
<form action="account.html">
<button type="submit">Submit</button>
</form>
が、両方の方法は動作しません。ボタンをaccount.htmlページにリンクできるようにするために私のコードをどうしなければなりませんか?
CSSコード:
a.button
{
margin: auto;
padding: 8px 16px;
border: none;
background: #333;
color: #f2f2f2;
text-transform: uppercase;
letter-spacing: .09em;
border-radius: 2px;
margin-top: 2%;
font-size: 1.5vw;
text-decoration: none;
}
最初のものは、それがすでにリンクだ、すべての ''
https://developer.mozilla.org/en-US/docs/Learn – powerbuoy
この場合に「