Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在自定义单选类型输入中对齐文本_Javascript_Sweetalert - Fatal编程技术网

Javascript 如何在自定义单选类型输入中对齐文本

Javascript 如何在自定义单选类型输入中对齐文本,javascript,sweetalert,Javascript,Sweetalert,我使用sweetalert来选择声明决策。在文本部分,我将使用带有radio类型的输入类。 我可以将复选框与左侧的文本对齐吗?可能这是p区 我尝试了许多选项,但仍然不起作用:( 你能帮我吗 swal({ type: "info", title: "Reasons:", text: "<input class=\"visibleInput\" align=\"left\" type=\"radio\" name=\"reason\" id=\"E1\" v

我使用sweetalert来选择声明决策。在文本部分,我将使用带有radio类型的输入类。 我可以将复选框与左侧的文本对齐吗?可能这是p区

我尝试了许多选项,但仍然不起作用:(

你能帮我吗

swal({
    type: "info",
    title: "Reasons:",
    text:
      "<input class=\"visibleInput\" align=\"left\" type=\"radio\" name=\"reason\" id=\"E1\" value=\"FV1\"> FV1text<br>" +
      "<input class=\"visibleInput\" align=\"left\" type=\"radio\" name=\"reason\" id=\"EOther\" value=\"FV2\"> FV2text<br>",
    textAlign: "left",
    showCancelButton: false,
    closeOnConfirm: false,
    closeOnCancel: false,
    confirmButtonText: "Confirm",
    cancelButtonText: "Cancel",
    html: true
  },
);
swal({
输入:“信息”,
标题:“理由:”,
正文:
“FV1text
”+ “FV2text
”, textAlign:“左”, showCancelButton:false, CloseOnConfig:false, closeOnCancel:false, confirmButtonText:“确认”, cancelButtonText:“取消”, html:对 }, );
您可以使用-受支持的原始SweetAlert分叉:

Swal.fire({
标题:“选择颜色”,
输入:'收音机',
客户类别:{
输入:“我的收音机”
},
输入选项:{
“#ff0000”:“红色”,
“#00ff00”:“绿色”,
“#0000ff”:“蓝色”
}
})
。我的收音机{
显示:内联flex!重要;
弯曲方向:立柱;
调整项目:灵活开始!重要;
}