javascript - 仅限 Firefox 的罕见故障 : textarea shifted

标签 javascript jquery html css firefox

我在我的网站上遇到了这种罕见且仅限 Firefox 的奇怪故障。

firefox glitch

文本区域向左移动,但上面的输入仍然没问题。问题是,这个问题很少见且不可预测 - 并且总是在刷新页面后解决。

html代码:

<form class='std_form' method='post' action='/kontakt-proceed/'>
<p><label for='kontakt_email'>Ihre E-Mail</label>
<input type='text' name='kontakt_email' id='kontakt_email'/></p>
<p><label for='kontakt_msg'>Ihre Nachricht</label>
<textarea name='kontakt_msg' id='kontakt_msg' rows='5' cols='4' class='noedit'>
</textarea>
</p>
<p><input type='submit' value='Abschicken'/></p>
</form>

还有CSS:

.footer_left{
width:35%;
float:left; 
color:white;
}
.footer_left label {display:block;margin-top:-3px;font-size:10px !important;}
.footer_left textarea {height:60px !important;width:240px !important;}
.footer_left input {width:240px !important;}
.footer_left p{margin-bottom:-13px;}

提前致谢!

编辑:问题似乎在完全刷新 (CTRL+F5) 后出现,但也很少见。

最佳答案

对于您的 Textarea,您必须设置此 css:

#kontakt_msg{
  position:absolute;
  left:30px;
}

.footer-left{
  position:relative;
}

关于javascript - 仅限 Firefox 的罕见故障 : textarea shifted,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20933479/

相关文章:

javascript - NodeJS JSON 错误

javascript - 如何在网站中插入音乐?

javascript - Kendo UI TreeView 节点在拖放后丢失自定义分配的 HtmlAttributes

javascript - 我的 Jquery 无法连接到我的 html

javascript - 无需触摸 html 链接

Javascript:在for循环内调用时获取不是函数错误

javascript - beforeShowDay 每天调用两次

javascript - 缩放后如何使div居中

java - 字符串与常量错误的比较

javascript - 如何从 Javascript 函数访问在 HTML 隐藏输入中声明的数组?