开发者

Disabled textarea without color change

How 开发者_开发问答do I make a textarea that is disabled, but the background and text colors don't change? Is it possible?


If you're using a styled textarea you could easily add a class to it that has the same styling as the other (not disabled) elements.

Take a look at this:

<style>
input[type=button] {
    background: #FFF;
    border:1px solid #000;
    color: #000;
    padding: 10px;
}
</style>

<input type="button" disabled="disabled" value="I'm disabled :(" />
<input type="button"  value="I'm not :)" />

That's an example of how you can change the appearance of disabled elements (buttons in this case, but textareas should work the same).

It looks something like this:

Disabled textarea without color change

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜