我的代码是:
<body>
<footer
class="fixed bottom-0 left-1/2 w-full max-w-4xl -translate-x-1/2 transform bg-white shadow-[0_0_40px_40px_rgba(255,255,255,1)]"
>
<div
class="mx-6 mb-6 flex h-fit flex-none items-center justify-between gap-x-2 rounded-lg border border-gray-200 bg-white py-3 pr-2 pl-4 shadow-sm"
>
<textarea
class="min-h-[24px] max-h-[240px] field-sizing-content flex-1 resize-none border-none text-base outline-0 placeholder:text-gray-400"
id="prompt__input"
type="text"
name="message"
placeholder="Comment puis-je vous aider ?"
></textarea>
<button
class="h-8 cursor-pointer px-3 text-xl font-black hover:rounded-lg hover:bg-gray-100 disabled:cursor-progress disabled:border-stone-200 disabled:text-stone-400"
id="prompt__submit"
type="button"
>
<svg
class="fill-gray-600"
aria-hidden="true"
focusable="false"
viewBox="0 0 16 16"
width="22"
height="22"
>
<path
d="M.989 8 .064 2.68a1.342 1.342 0 0 1 1.85-1.462l13.402 5.744a1.13 1.13 0 0 1 0 2.076L1.913 14.782a1.343 1.343 0 0 1-1.85-1.463L.99 8Zm.603-5.288L2.38 7.25h4.87a.75.75 0 0 1 0 1.5H2.38l-.788 4.538L13.929 8Z"
></path>
</svg>
</button>
</div>
</footer>
</body>
有限的可用性field-sizing
field-sizing