我需要在RadioButtonList中显示我的列表,有点像这样:@ Html.RadioButtonList("FeatureList",新的SelectList(ViewBag.Features))但是你知道HTML Helper类中没有RadioButtonList类,当我使用时: @ Html.RadioButton("FeatureList",新的SelectList(ViewBag.Features))它显示了一个空白列表!//控制器代码:
public ActionResult Rules()
{
ViewBag.Features = (from m in Db.Features where m.ParentID == 3 select m.Name);
return View();
}
Run Code Online (Sandbox Code Playgroud) 我正在尝试添加嵌入式css以便在新选项卡中打开所有链接,但它不起作用:
<style type="text/css">
a
{
target-name: new;
target-new : tab;
}
</style>
<body>
<a href="http://www.google.com" >Google </a>
</a>
</body>
Run Code Online (Sandbox Code Playgroud)
我想在新标签中打开链接,我不想为每个链接使用'target'属性.