我的代码:
<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...>
元素到 <textarea...>
元素。
<textarea style="position:fixed; width:100%; height:70px; background-color:yellow; padding:5px; bottom:0px; ">
test content :D
</textarea>
关于html - 如何使页脚成为文本区域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40069978/