如何使页脚成为文本区域
How to make a footer a textarea
我的代码:
<div style="position:fixed; width:100%; height:70px; background-color:yellow; padding:5px; bottom:0px; ">
test content :D
</div>
我希望文本区域成为页脚,就像在 Messenger(聊天)中一样。Here is how my footer text-area should be
[短]
我有一个 div 这是一个页脚,但我想要一个文本区域作为页脚
当我将 div 更改为文本区域时,我无法将其居中。
Like in the picture
您需要使用 <div>
作为 <form>
元素的容器,该元素包含所有表单元素,在本例中为文本区域。
您只需将 <div...>
元素更改为 <textarea...>
元素即可。
<textarea style="position:fixed; width:100%; height:70px; background-color:yellow; padding:5px; bottom:0px; ">
test content :D
</textarea>
我的代码:
<div style="position:fixed; width:100%; height:70px; background-color:yellow; padding:5px; bottom:0px; ">
test content :D
</div>
我希望文本区域成为页脚,就像在 Messenger(聊天)中一样。Here is how my footer text-area should be
[短] 我有一个 div 这是一个页脚,但我想要一个文本区域作为页脚
当我将 div 更改为文本区域时,我无法将其居中。 Like in the picture
您需要使用 <div>
作为 <form>
元素的容器,该元素包含所有表单元素,在本例中为文本区域。
您只需将 <div...>
元素更改为 <textarea...>
元素即可。
<textarea style="position:fixed; width:100%; height:70px; background-color:yellow; padding:5px; bottom:0px; ">
test content :D
</textarea>