透過以下 CSS 的設定,可以輕鬆的將所有把 ReadOnly 屬性設為 True 的 TextBox 變成灰色的控制項。
input[readonly], textarea[readonly] {
color:black !important;
cursor: default;
background-color: threedface !important;
}
參考:
01:Internet Explorer 8: How to make read only text input have no cursor
沒有留言:
張貼留言