改变textarea的bgcolor [英] changing a textarea's bgcolor

查看:93
本文介绍了改变textarea的bgcolor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果你看一下textarea评论这个页面你会看到我的愿望。


当鼠标悬停在textarea上时,bgcolor会发生变化,但是一旦点击textarea就会保持这个直到该区域失去焦点的新颜色。


男人们怎么了?

解决方案

wasup markus !!!


CSS跟随...

展开 | 选择 | Wrap | 行号


wasup markus !!!


CSS跟随...

展开 | 选择 | Wrap | 行号


您可以使用JavaScript似乎很简单。点击更改后,背景颜色和模糊会改变它。

谢谢,

{\_ /}

('''')

(")[DEATH](")

(")(" ;)

If you take a look at the textarea for commenting on this page you''ll see my desire.

When hovering over the textarea the bgcolor changes, but once the textarea is clicked it maintains this new color until the area loses focus.

What''s going on guys?

解决方案

wasup markus!!!

CSS follows...

Expand|Select|Wrap|Line Numbers


wasup markus!!!

CSS follows...

Expand|Select|Wrap|Line Numbers


You can probably just use JavaScript it seems simple enough. On click change the background color and on blur change it back.

Thanks,
{\_/}
('' . '')
(")[DEATH](")
(")(")


这篇关于改变textarea的bgcolor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆