floating-labels

Bad behavior of floating-labels when autocomplete

为君一笑 提交于 2020-12-15 00:22:26
问题 I've using the Floating labels example from Bootstrap 4.3. If the browser has already credentials on the autocompletement, the layout of <input> will breaks. The animation (and the size & margin properties) of floating labels will only start, if the window/document has an focus. How i can prevent these problem? I've found the CSS propertie :-webkit-autofill , or try to focus the first input field, but the problem will be not solved. Preview: 回答1: I've found the answer. By default, the label

Bad behavior of floating-labels when autocomplete

旧巷老猫 提交于 2020-12-15 00:17:53
问题 I've using the Floating labels example from Bootstrap 4.3. If the browser has already credentials on the autocompletement, the layout of <input> will breaks. The animation (and the size & margin properties) of floating labels will only start, if the window/document has an focus. How i can prevent these problem? I've found the CSS propertie :-webkit-autofill , or try to focus the first input field, but the problem will be not solved. Preview: 回答1: I've found the answer. By default, the label