[英]how to set formatting of all textbox in asp.net website with css, without set cssclass property of each textbox
I am working on Asp.Net web site. 我正在Asp.Net网站上工作。 I want to set Font, color and background color of all textbox in my website. 我想在我的网站中设置所有文本框的字体,颜色和背景颜色。 i want to do it with css. 我想用css做。
But i dont want to assign "cssclass" property of each textbox. 但我不想分配每个文本框的“cssclass”属性。
and as textbox i want to set formatting in RequiredFieldValidator. 作为文本框我想在RequiredFieldValidator中设置格式。
is it possible to set it globally in Asp.Net with CSS 是否可以使用CSS在Asp.Net中全局设置它
just add this in your css file 只需在您的css文件中添加它
input[type=text]
{
background-color:black;
font-family:Callibri;
color:white;
}
this style will be applied on every textbox 此样式将应用于每个文本框
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.