CSS 字段集背景颜色
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15934724/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
FieldSet background color
提问by user1046415
I am trying to set a background color for a fieldset in Telerik with the below code.
我正在尝试使用以下代码为 Telerik 中的字段集设置背景颜色。
Can someone point me in right direction, or have any other ideas?
有人可以指出我正确的方向,或者有任何其他想法吗?
.RadForm_Office2007.rfdFieldset fieldset
{
border: solid 1px #080808;
background-color:yellow !important;
}
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server"
DecoratedControls="Fieldset" Skin="Office2007"/>
<fieldset style="float: left; width: 280px;">
<legend>Grid
</legend>
<telerik:RadTextBox runat="server"></telerik:RadTextBox>
</fieldset>
回答by Praveen Dabral
You can set the background color as
您可以将背景颜色设置为
<fieldset style="float: left; width: 280px; background-color:red;">
you can use color codes for setting background color like this
您可以使用颜色代码来设置这样的背景颜色
<fieldset style="float: left; width: 280px; background-color:#999999;">
you can visit http://www.colorpicker.com/for finding color codes
您可以访问 http://www.colorpicker.com/查找颜色代码
回答by bradhanks
The answer is staring you in the face
答案是盯着你的脸
fieldset
{
border: solid 1px #080808;
background-color:yellow !important;
}