将 css 样式应用于所有 asp.net 文本框和文本类型的 Html 输入
我正在使用 asp.net 网站,我需要将 css 样式应用于所有文本框和 html 输入,并在一处键入文本。 我希望在这个问题上帮助我..
I'm using asp.net website and I need to apply css style to all text boxes and html Input with type text in one place.
I hope to help me in this issue ..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 CSS 来做到这一点:
这会将该样式应用于作为文本类型输入的任何元素。这也适用于 ASP 文本框控件,因为它呈现为具有文本类型的输入。
You can do this with CSS:
This will apply that style to any element that is an input of type text. This will also work with the ASP text box control because that renders out as an input with a type of text.
上面的 CSS 将显示:
您必须编写以下代码:
The above CSS will show:
You have to write the following code: