フォームに赤い下線が引かれた黒いテキストが必要です。使用上の問題 border-bottom: 1px solid red;
は、テキストだけでなく入力ボタン全体に下線が引かれることです。アクティブでない場合、ボタンには境界線も背景もありません。したがって、線が両側に5px程度重なっていると、奇妙に見えます...
<form method="POST">
<input type="hidden" name="cmd" value="doSthFancy" />
<input type="hidden" name="item_id" value="${item.id}" />
<input type="submit" value="${item.name} (${item.producer})" class="link" />
</form>
div ( ) でのネストは<div class="redUnderline"><p class="blackText"> hello world! </p></div>
通常は機能しますが、フォームの外側だけのように見えます。
代わりに href を使用できません。
ご協力いただきありがとうございます!