我已经编写 Web 代码几年了,我被难住了。我正在编写基本的 CSS/HTML,但我的文本区域不会输入文本。我的标题在那里,双击它后,我的光标应该指示它已准备好输入。
有什么想法吗?
我的 CSS
.postForm {
float: right;
width: 580px;
height: 80px;
position:relative;
margin-top:-30px;
padding-top:30px;
left:-30px;
}
我的 HTML
<div class="postForm">
<form action="profile.php?id=<? echo $_GET['id']; ?>" method="POST">
<textarea style="resize:none;font-family:Comic Sans MS; font-size:12pt;overflow: hidden;" id="post" name="post" class="auto-clear" rows="1" cols="60" title="Publish your thoughts...">
</textarea>
<input style="position:relative;margin-left:450px;margin-top:-66px;" type="image" name="send" value="Post" src="post.png" />
</form>
最佳答案
它正在接受输入。将光标放在文本区域并按住任意键几秒钟。它最终会结束。问题是溢出被隐藏引起的。此外,postForm
使元素向右浮动也无济于事。
关于html - 我的 Textarea 不会输入文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13772983/