Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.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
Html 如何做按钮并行_Html_Css_Bootstrap 4 - Fatal编程技术网

Html 如何做按钮并行

Html 如何做按钮并行,html,css,bootstrap-4,Html,Css,Bootstrap 4,我尝试了很多方法来并行这两个按钮。如果我删除html.beginform,两个按钮是并行的。我的问题是无法删除html.beginform。请告诉我正确的方向 html代码: <div class="row"> <div class="col-md-6"></div> <div class="col-md-6"> @using (Html.BeginForm("ExportExcel", "SalesByBranch

我尝试了很多方法来并行这两个按钮。如果我删除html.beginform,两个按钮是并行的。我的问题是无法删除html.beginform。请告诉我正确的方向

html代码:

<div class="row">
    <div class="col-md-6"></div>
    <div class="col-md-6">
        @using (Html.BeginForm("ExportExcel", "SalesByBranch", FormMethod.Post@*, new { enctype = "multipart/form-data" }*@))
        {
            <input type="submit" value="Excel" id="btnExcel" class="btn btn-danger btn-sm form-control" onclick=DataCheck(); style="width:80px;height:30px;" />
        }
        @using (Html.BeginForm("ExportPDF", "SalesByBranch", FormMethod.Post@*, new { enctype = "multipart/form-data" }*@))
        {
            <input type="submit" value="PDF" id="btnPDF" class="btn btn-danger btn-sm form-control" onclick=DataCheck(); style="width:80px;height:30px;" />
        }
    </div>
</div>

@使用(Html.BeginForm(“ExportExcel”、“SalesByBranch”、FormMethod.Post@*、new{enctype=“multipart/form data”}*@))
{
}
@使用(Html.BeginForm(“ExportPDF”、“SalesByBranch”、FormMethod.Post@*、new{enctype=“multipart/form data”}*@))
{
}


请回复我。

用以下样式将按钮包装在div中:

display: inline-block;
那么


您必须在“脚本”中添加新的内容。

我相信您的表单标记有问题,可能在表单标记上显示:block?你能发布输出的html代码吗?还有相关的css?好的!!我试试看。谢谢你的回答请看这里:好的!!我试试看。谢谢你的回答杜克!!我试试看。谢谢你的回答D
display:inline block