很多初学者很疑惑,在html里有radio这个标签,到底怎么使用,使用radio的效果是什么样的?今天教大家怎样在html怎样使用radio。
1、html代码片段:
<form action="" method="get"> 您最喜欢水果?<br /><br /> <label><input name="Fruit" type="radio" value="" />苹果 </label> <label><input name="Fruit" type="radio" value="" />桃子 </label> <label><input name="Fruit" type="radio" value="" />香蕉 </label> <label><input name="Fruit" type="radio" value="" />梨 </label> <label><input name="Fruit" type="radio" value="" />其它 </label> </form>
2、案例截图

以上就是在radio的用法和案列截图,有需要的朋友可以持续关注本站,你学会了吗?
立即学习“前端免费学习笔记(深入)”;
相关推荐:
以上就是在html怎样使用radio的详细内容,更多请关注php中文网其它相关文章!
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号