Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在所有Asp.Net控件上设置CSS中的边距_Asp.net - Fatal编程技术网

在所有Asp.Net控件上设置CSS中的边距

在所有Asp.Net控件上设置CSS中的边距,asp.net,Asp.net,是否可以使用css在所有asp控件(如asp:RadioButton、asp:DropDownList等)上设置边距。以下内容显然不起作用,但是否有类似的功能 asp:Controls { margin: 5px; } 事实上,你可以这样做: input, textarea, table { margin: 5px; } 然后继续添加您需要的内容。这实际上对其中一些内容起到了作用,而不是dropdownlist的思想将选择添加到列表输入、文本区

是否可以使用css在所有asp控件(如asp:RadioButton、asp:DropDownList等)上设置边距。以下内容显然不起作用,但是否有类似的功能

    asp:Controls
    {
        margin: 5px;
    }

事实上,你可以这样做:

input, textarea, table {
    margin: 5px;
}

然后继续添加您需要的内容。

这实际上对其中一些内容起到了作用,而不是dropdownlist的思想将选择添加到列表输入、文本区域、表格、选择中