简体   繁体   English

如何修复表单附件的 html/CSS 对齐和格式问题?

[英]how to fix html/CSS alignment and formatting issue of a form attachment?

I want to add an attachment for my HTML form.我想为我的 HTML 表单添加附件。 But I have some CSS and formatting issues with my code.但是我的代码有一些 CSS 和格式问题。 There is a difference between expected output and actual output.预期产出和实际产出之间存在差异。 Please help me to fix the CSS issues.请帮我解决 CSS 问题。 Thank you谢谢

<form>
 <div class="form-group row">
            <label class="col-md-5 col-form-label">attachment</label>
            <div class="col-md-7">
                <input type="file" class="form-control" id="myfile" name="myfile"><br><br>
            </div>
        </div>
</form>

actual output实际输出

expected output预期产出

It depends on your CSS code.这取决于您的 CSS 代码。 It will be better if you please provide the CSS code of the HTML you have provided so to understand the situation better.如果您提供您提供的 HTML 的 CSS 代码会更好,以便更好地了解情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM