Issues with your snippet:
for
attribute does not match the input
element's name
attribute. <div> <label for="myInput">XXXXX</label> <input name="myInput" placeholder="SSSS"/> </div>
Just add display:flex
to <label>
like so:
label {
display: flex;
}
Also note I removed the original padding styles u provided in ur code.
<div> <label for="checkbox6">XXXXXX</label> <input class="form-control" name="quantum" type="number" min="1" placeholder="SSSS" required> </div>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.