@ Html.EditorFor的资格问题

时间:2019-08-01 20:15:38

标签: asp.net-mvc

我从这里得到下面的代码。我想调整表单上所有文本框大小的大小。我的问题是,当我进入编辑视图时,在单击编辑框之前,文本的文本对齐方式没有在中心水平对齐吗?如何使该垂直居中?

之前:

enter image description here

仅在文本框中单击后即可正确对齐:

enter image description here

谢谢, EB

                    @media (min-width: 768px) {
                        .form-horizontal .control-label {
                            padding-top: 3px;
                            margin-bottom: 0;
                            text-align: right;
                        }

                        .form-horizontal .form-control {
                            height: 25px;
                        }
                    }

0 个答案:

没有答案