,可以通过以下方式实现:
示例代码:
<label for="option1">Option 1</label>
<input type="radio" id="option1" name="options" value="option1">
<label for="option2">Option 2</label>
<input type="radio" id="option2" name="options" value="option2">
<label for="option3">Option 3</label>
<input type="radio" id="option3" name="options" value="option3">
示例代码(使用Bootstrap):
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="options" id="option1" value="option1">
<label class="form-check-label" for="option1">Option 1</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="options" id="option2" value="option2">
<label class="form-check-label" for="option2">Option 2</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="options" id="option3" value="option3">
<label class="form-check-label" for="option3">Option 3</label>
</div>
推荐的腾讯云相关产品和产品介绍链接地址:
云+社区沙龙online第6期[开源之道]
云原生安全实战加速仓
DBTalk
云+未来峰会
Elastic 中国开发者大会
高校公开课
serverless days
领取专属 10元无门槛券
手把手带您无忧上云