waiting now, how to solve
height: 54px;
line-height: 54px;
iPhone placeholder is normally centered vertically, while Android phone is on the upper side
iPhone cursor is not normal
waiting now, how to solve
height: 54px;
line-height: 54px;
iPhone placeholder is normally centered vertically, while Android phone is on the upper side
iPhone cursor is not normal
your situation is already very common. The mobile placeholder cannot be centered vertically. The main reason is that line-height is really not good on the mobile end, and the effect of centering is not good. It would be better to change it to padding. But padding is only a little better and still can't stand people with some obsessive-compulsive disorder. This is my own way to deal with this problem. The problem of can be solved by changing the layout. Div simulates a 40-pixel input box, the height of the sub-element input is the same as the font size, and the background is transparent and borderless. At this point, input text and placeholder prompt text can be displayed in the middle, and Android phones, iPhones and computers, as well as normal pc browsers, will not move up or down.
Optimization problem: only when you click on input can you enter the cursor. At this time, you can do the click event for div to get the cursor for input, which can perfectly simulate the input input box.
Previous: Introducing scss file into vue to report These relative modules were not found error
Next: Other methods for antd desgin getFieldDecorator to get input values
I found a js code from the Internet to calculate the time difference effect is that we have been together xx days xx xx minutes xx seconds problem is that this time will not change only enter the web page after refreshing to keep the same value so I...
as the title, we are going to do an e-book reader on the web side, and the back end will send us content according to each chapter. our reader scrolls vertically. For example, when we are looking at Chapter 5, the user scrolls down a little bit (for ex...
when you click manually, you can copy the specified content to the pasteboard, and add an automatic loading page on this basis, how to achieve it? < hr > <body> <input type="text" id="inputText" value="444" ...
problems with vue + vux using onchange events when using Picker components this is an example of city linkage because I want to get the province first and then the city instead of pulling the data at once, so I get the data in the change event of pi...
We need to make a Web-based reader, just like all the Web readers you use, such as turning pages left and right. however, we have a bizarre need to calculate the total length of all content, or to search. This requires the implementation of a "content...
problem description the environmental background of the problems and what methods you have tried as shown in the figure, when you pull down the body area under IOS, the background color of the Header component of fixed at the top is obscured by t...
Table: < table > < thead > < tr > < th > a < th > < th > b < th > < th > c < th > < th > d < th > < th > e < th > < tr > < thead > < tbody class= "getTableData " > < tr > < th > 1 < th > < th > 22222222222222222222222222222222222 < t...
do any friends know the regular and reliable payment platform that individuals can access? I have contacted several companies, all of which require enterprise qualifications ...
<template> <div> <canvas style="height: 500rpx;width: 500rpx;" canvas-id="myCanvas">< canvas> <image :src="imagePath" style="width: 200rpx;height: 200rpx;" > < di...
if the premise height is not set or auto,min-heigth is not suitable, there will be a blank at the bottom. .errors { width: 390px; min-height: 210px; background:white; position: fixed; top: 0; right: 0; bottom: 0; left: 1...
htmljschecked css is like this, so it should not be the problem of css. ask for advice. ...
I would like to ask ui to give the Android design diagram, let the Android design map to adapt to Apple, map 1 times 2 times 3 map how to adapt according to different phones, is it using dpr? How to write it? ...
new Date (). GetTime () this gets a 13-bit timestamp (in milliseconds) how to get a second timestamp, is it directly divided by 1000? I always thought that if I calculated this way, it would be imprecise to leave out three digits, so I asked ....
problem description iview table deployment add component Select deployment is blocked the environmental background of the problems and what methods you have tried css cannot adjust the occluded style related codes Please paste the code tex...
111$$_{preGradeName}_$$2222$$_{preGradeName}_$$3333$$_{gradeName}_$$4444$$_{shortLink}_$$5555 $$_{ }_$$ Gods, how to write this rule ...
rookie problem, ask for a favor for (var I = 0; I < 5; iPP) { setTimeout (function () {console.log (I);}, I * 1000); } know that the output of five 5s knows that this fast is caused by the event queue and scope, but the results are different when us...