铁柱%* 2021-06-28 16:25 采纳率: 87.5%
浏览 28
已采纳

想把单选按钮的位置改在中间2侧该怎么做

<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>dz21</title> <style type="text/css"> .box{ width: 800px; height: 650px; background-color: orangered; border-radius: 10% 10% 0 0; margin: 0 auto;<!--设置居中--> line-height: 1px; } .00{ width: auto; height: 80px; } #p1{ color: white; font-size: 50px; text-align: center; padding: 10px; } .line_01{ height: 1px; width: auto; background-color: white; } .01{ width: 100%; height: 570px; } .radio{ width: auto; height: 50px; } .anniu{ width: auto; height: 85px; margin: 0 auto; } </style> </head> <body> <div class="box"> <div class="00"> <div id="p1">简单计算器</div> <div class="line_01"></div> </div> <div class="01"> <div class="anjian"> <input type="radio" class="radio1" name="gender" value="1" />加法 <input type="radio" class="radio2" name="gender" value="2"/>减法 </div> <div class="text"> <div class="text01"> 数1:<input type="text"  placeholder="请输入第一个数字"/> </div> <div class="text02"> 数2:<input type="text" placeholder="请输入第二个数字" /> </div> <div class="text03"> 对比:<input type="text" placeholder="等于的数"/> </div> </div> <div class="img"> <img src="img/21/right.jpg"  width="200px" /> </div> <div class="anniu"> <input type="submit" value="计算" style="width: 130px; height: 80px; font-size: 50px;"/> <input type="submit" value="交换" style="width: 130px; height: 80px; font-size: 50px;"/> <input type="submit" value="换背景色" style="width: 250px; height: 80px; font-size: 50px;"/> </div> </div> </div> </body></html>

 

  • 写回答

2条回答 默认 最新

  • 张海智_ 2021-06-28 16:29
    关注

    如图

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?