In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "case analysis of common problems in front-end development input". In daily operation, I believe that many people have doubts about the analysis of common problems in front-end development input. The editor has consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "front-end development input common problem case analysis". Next, please follow the editor to study!
1. Remove the default fillet and inner shadow of input in iOS
Under iOS, input will have its own rounded corners and inner shadows. The methods to remove them are as follows:
Input {- webkit-appearance: none; border-radius: 0;}
two。 When the focus is on input, placeholder is not hidden
Input:focus::-webkit-input-placeholder {opacity: 0;}
3. Input input box calls up the numeric keypad
When using type= "number" alone, iOS does not set the Nine-grid numeric keypad. If you need to adjust the Nine-Palace numeric keypad, you need to add the pattern= "[0-9] *" attribute:
4. When searching, the enter button text of the keyboard is set to "search"
Solution: input uses type= "search" and places it in the form form. The combination of the two can change the enter button text in the input method into "search".
5. Change the input placeholder color
::-webkit-input-placeholder {/ * WebKit browsers * / color: # 999;}:-moz-placeholder {/ * Mozilla Firefox 4 to 18 * / color: # 999; opacity: 1;}:-moz-placeholder {/ * Mozilla Firefox 19 + * / color: # 999; opacity: 1;}:-ms-input-placeholder {/ * Internet Explorer 10 + * / color: # 999 } input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {/ * WebKit*/ color: # 666;} input:-moz-placeholder, textarea:-moz-placeholder {/ * Mozilla Firefox 4 to 18 * / color: # 666;} input::-moz-placeholder, textarea::-moz-placeholder {/ * Mozilla Firefox 19 + * / color: # 666 } input:-ms-input-placeholder, textarea:-ms-input-placeholder {/ * IE 10 + * / color: # 666;}
6. The problem of autofocus focus () failure under iOS
Focus cannot be obtained automatically under iOS. It must be useful to execute focus in a function that listens for events emitted by users, such as:
/ / openNotifyReplay is an event triggered by click openNotifyReplay = (e) = > {this.setState ({notifyReplayVisible: true}, () = > {document.getElementById ("replayPopupText"). Focus ()})} so far, the study on "case analysis of common problems in front-end development input" is over. I hope to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.