简体   繁体   English

如何在 Visual Studio 中查找样式 css 文件。 在带有标签的单选按钮 radiobuttonlist 之间添加空格

[英]How to find styling css file in Visual Studio. Adding space between radio button radiobuttonlist with label

I am trying to add space between radiobuttonlist.我正在尝试在单选按钮列表之间添加空格。

I see the aspx markup code, CssClass="radiobuttonlist" but when I use Ctrl + Shift + F, and type in .radiobuttonlist with Entire Solution, I can't find the css file that contains the definition.我看到了 aspx 标记代码 CssClass="radiobuttonlist" 但是当我使用 Ctrl + Shift + F 并在整个解决方案中输入 .radiobuttonlist 时,我找不到包含定义的 css 文件。 Strange, I found this奇怪,我发现了这个

input[type=radio],
.radio{
    margin: -1px 10px 0 0;
}

I am not sure what are the 4 values stands for but I tried making changes like margin: 10px 10px 0 0;我不确定这 4 个值代表什么,但我尝试进行更改,例如 margin: 10px 10px 0 0; but not having any luck in adding spaces after the radio button label.但在单选按钮标签后添加空格没有任何运气。

I also see another CssClass definition in the aspx like CssClass="radiobuttonlist showGender" but I am not sure how showGender is used in the css file or aspx.我还在 aspx 中看到另一个 CssClass 定义,如 CssClass="radiobuttonlist showGender" 但我不确定如何在 css 文件或 aspx 中使用 showGender。

Is there another way to find in Visual Studio where the CssClass="radiobuttonlist" is defined.是否有另一种方法可以在 Visual Studio 中找到定义了 CssClass="radiobuttonlist" 的位置。 Any help with adding spaces after the label would be greatly appreciated.在标签后添加空格的任何帮助将不胜感激。 Been googling and trying out different values but no success after a few hours.一直在谷歌搜索并尝试不同的值,但几个小时后没有成功。 Thanks.谢谢。

I changed it to the following and it is working.我将其更改为以下内容并且它正在工作。

.radio{
      margin-right:10px; margin-left:10px;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM