-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
m.youdao.com - layout is messed up #3160
Comments
Can be reproduced , even in responsive design mode. |
Problem is the default height of input element. There is no value in the input element. Firefox gives default height 2px but Chrome gives default height according to user agent style: {
inline-height: normal # I guess it's 16px by default
} I'm not sure if it's possible to fix like this: https://jsfiddle.net/6cvzdf0g/2/ .btn {
white-space: pre; # origin is nowrap
}
.btn::-moz-focus-inner {
border: 0; # disable the border
} @karlcow, could you help to give a better solution? |
@MDTsai: in truth, they really should be using CSS flexbox for this kind of thing these days. But if they don't wanna, then adding these rules should work fine instead:
This forces the button to be 100% the height of its parent, which in turn is 100% of the height of the form. The form is set to |
Fill form for this issue to youdao, thanks @wisniewskit ! |
Youdao has github account @netease-youdao , ping @bartonding to see if we can have get connection from anyone in youdao. |
URL: http://m.youdao.com/
Browser / Version: Firefox Mobile 51.0
Operating System: Android 5.1.1
Problem type: Layout is messed up
Steps to Reproduce
Expected Behavior: Search button looks good
Actual Behavior: Only half search button
Problem should be in the CSS style of search button use .
From webcompat.com with ❤️
The text was updated successfully, but these errors were encountered: