我正在使用以下HTML代码格式化引导程序按钮(和表单),但是如果删除type='submit'
属性,此按钮只能正确显示(常见的“ btn-primary”蓝色)。 / p>
知道为什么会这样吗?
<div class="form" action="/submit-subject" method="post">
<div class="form-group">
<div class="form-check form-check-inline"><input class="form-check-input" id="exampleRadios1" type="radio" name="exampleRadios" value="option1" checked="true" /><label class="form-check-label" for="exampleRadios1">Default radio</label></div>
<div class="form-check form-check-inline"><input class="form-check-input" id="exampleRadios2" type="radio" name="exampleRadios" value="option2" /><label class="form-check-label" for="exampleRadios2">Yes </label></div>
<div class="form-check form-check-inline"><input class="form-check-input" id="exampleRadios3" type="radio" name="exampleRadios" value="option3" /><label class="form-check-label" for="exampleRadios3">Disabled radio</label></div>
</div>
<div class="form-group">
<div class="btn btn-primary" type="submit" id="submit-subject">Submit</div>
</div>
</div>