欢迎您 本站地址:
复制网址
手机查看
切换背景
源代码:
html编辑器
颜色值转换
点击运行
Bootstrap5 实例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.staticfile.net/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.staticfile.net/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script> <div class="container mt-3"> <h2>单选框</h2> <p>下面的表单包含三个单选按钮,默认选中第一个选项,禁用最后一个选项:</p> <form action="/action_page.php"> <div class="form-check"> <input type="radio" class="form-check-input" id="radio1" name="optradio" value="option1" checked> <label class="form-check-label" for="radio1">Option 1</label> </div> <div class="form-check"> <input type="radio" class="form-check-input" id="radio2" name="optradio" value="option2"> <label class="form-check-label" for="radio2">Option 2</label> </div> <div class="form-check"> <input type="radio" class="form-check-input" disabled> <label class="form-check-label">Option 3</label> </div> <button type="submit" class="btn btn-primary mt-3">Submit</button> </form> </div>
运行结果:
小库提示
扫描下方二维码,访问手机版。
打赏
关闭