diff --git a/packages/info/index.less b/packages/info/index.less index 6840267e..3ecf0a61 100644 --- a/packages/info/index.less +++ b/packages/info/index.less @@ -3,14 +3,14 @@ .van-info { position: absolute; + top: 0; right: 0; box-sizing: border-box; white-space: nowrap; text-align: center; - transform: translateX(50%); + transform: translate(50%, -50%); transform-origin: 100%; - .theme(top, 'calc(@info-size / -2)'); .theme(min-width, '@info-size'); .theme(padding, '@info-padding'); .theme(color, '@info-color');