diff --git a/components/form/style/index.less b/components/form/style/index.less index a60f9a54f6..943fee3d3b 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -249,15 +249,14 @@ form { // Form layout //== Vertical Form -.@{form-prefix-cls}-vertical { - .@{form-prefix-cls}-item-label { - padding: 0 0 8px; - display: block; - text-align: left; +.@{form-prefix-cls}-vertical .@{form-prefix-cls}-item-label, +.@{ant-prefix}-col-24.@{form-prefix-cls}-item-label { // when labelCol is 24, it is a vertical form + padding: 0 0 8px; + display: block; + text-align: left; - label:after { - content: ''; - } + label:after { + content: ''; } }