Mi piacerebbe avere un'area di testo sempre grande come il testo. In questo modo è possibile scorrere la pagina e nell'area di testo non è possibile scorrere.
Ecco quello che ho fatto fino ad ora:HTML TextArea ridimensiona automaticamente
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
html, body {height: 100%;}
textarea {
border: none;
width: 100%;
height: 100%;
-webkit-box-sizing: border-box;
line-height: 44px;
font-family:Helvetica;
font-size: 17pt;
-webkit-tap-highlight-color: rgba(0,0,0,0);
background-image:url('[email protected]');
outline: none;
resize: none;
}
textarea.vert { resize:vertical; }
</style></head><body>
<textarea id="InputTextArea" placeholder="placeholder"></textarea>
</body></html>
possibile duplicato di [Creazione di una textarea con auto-ridimensionamento] (http: // StackOverflow .com/questions/454202/creating-a-textarea-with-auto-resize) –
Ho creato un pacchetto per questo se stai usando react: https://www.npmjs.com/package/react-fluid-textarea –