Home  >  Article  >  Web Front-end  >  I'll give you a minute to read it. I have a question to ask about the CSS reference issue of single-line and multi-line textbox controls_html/css_WEB-ITnose

I'll give you a minute to read it. I have a question to ask about the CSS reference issue of single-line and multi-line textbox controls_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:53:341183browse

Create a css class: .cssTxtBoxBackgroundClor{background-color:#eeeeee;}
Agency in
( ReadOnly="true" MaxLength="256" TextMode="MultiLine" Height="80px">
Area>)
and Three Designator ( CssClass="cssTextBox" ValidationGroup="addEditCode"> Reference this css class respectively in the readonly case. The above multiple lines of references are successful, but the following references are invalid.
I hope the experts can help me solve it, thank you


Reply to the discussion (solution)

The purpose of this writing operation is to change The background color of these two controls under readonly is gray! If you have other solutions, please feel free to tell us!

Is that class useful?




textarea[readonly]{background -color:#eeeeee;}

Which class is useful?




textarea[readonly]{background-color:#eeeeee;}


What I posted has not been quoted, but after I quoted it, the custom multi-line control drinking above is valid. Yes, the key is that the following single-line control failed to drink. I don’t know why it failed. Is it because of single line vs. multiple lines? Or something else?

Take a look at the generated HTML

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn