首页 > 其他分享 >label嵌套radio对齐方法

label嵌套radio对齐方法

时间:2023-09-21 15:59:29浏览次数:32  
标签:flex top label rd 嵌套 radio 对齐 margin

1. 暂时使用flex和margin-top来对齐

<style>
    .rd{display:flex; align-items:center;}
    .rd input{margin-top:1px}
</style>
<div>
    <label class="rd"><input type="radio" value="1" name="gender" /> Male </label>
    <label class="rd"><input type="radio" value="2" name="gender" /> Female </label>
    <label class="rd"><input type="radio" value="3" name="gender" /> Other </label>
</div>

 

标签:flex,top,label,rd,嵌套,radio,对齐,margin
From: https://www.cnblogs.com/mengff/p/17720112.html

相关文章

  • 洛谷 P4391. [BOI2009] Radio Transmission 无线传输
    [BOI2009]RadioTransmission无线传输题目描述给你一个字符串$s_1$,它是由某个字符串$s_2$不断自我连接形成的(保证至少重复$2$次)。但是字符串$s_2$是不确定的,现在只想知道它的最短长度是多少。输入格式第一行一个整数$L$,表示给出字符串的长度。第二行给出字符串$s_......
  • kubernetes中,如何更新对象的label(标签)?
    1、给资源对象添加标签这里的操作都是在pod资源对象上完成的。kubectllabelpodpod-static-ip-76c554659d-kwjh8role=backend 2、查看资源对象的标签[root@nccztsjb-node-23~]#kubectlgetpodpod-static-ip-76c554659d-kwjh8--show-labelsNAME......
  • 59-嵌套循环练习-九九乘法表-打印表格数据
        打印上半截,靠右对齐,目前没实现      ......
  • If的多层嵌套
    问题:If的多层嵌套在比较运算判断中,条件不应以“m-n”这种方式显示区间,而是写成and(a1>=m,a1<=n)在If的多层嵌套中,尽量统一运算符方向公式:=IF(F1<=2,2,IF(F1<=6,6,IF(F1<=12,"7-12",IF(F1<24,"13-24",24))))&"个月"......
  • 55-选择结构的嵌套
           ......
  • 47-字典-复杂表格数据存储-列表和字典综合嵌套
           ......
  • 图像语义分割的图片标注及标注图片的读取 --- labelme
    labelme的安装1:先打开anacondaprompt命令行创建一个虚拟环境:condacreate--namelabelmepython=3.6condacreate-nlabpython=3.6  2:激活虚拟环境:condaactivatelab 3:安装labelme:4:输入labelme->系统会打开labelme的界面   单张图片和......
  • less-嵌套样式
    .box{width:500px;padding:20px;border:1pxsolid#666;border-radius:10px;//&符号代表上一层的选择器.父级&:hover{background-color:green;box-shadow:0020pxblack;}h2{font:40px/40px......
  • 如何在gradio使用多进程,并且使用进度条显示多进程
    直接上代码:defmethod_a(progress=gr.Progress(track_tqdm=True)):pool=multiprocessing.Pool(multiprocessing.cpu_count())param_v=range(10)pbar=tqdm(total=len(param_v))resy=[]forpinparam_v:pool.apply_async(task_deal......
  • 嵌套查询
    nested子文档在ES内部其实也是独立的lucene文档,只是我们在查询的时候,ES内部帮我们做了类似数据库的join处理。最终看起来好像是一个独立的文档一样。如果一个订单,有1000个订单项,那么在ES中存在的文档数就是1001,会随着订单数的增加而成倍上升。那可想而知,同样的条件下,这个......