如何设置 DropDownList 的字体大小?

How to set up font size for DropDownList?

我在剃须刀代码中有下拉列表。

<div class="col-right">
                @{
                    List<string> Country = new List<string>();
                    Country.Add("Englind");
                    Country.Add("Spanish");
                }
                @Html.DropDownList("Country", new SelectList(Country).ToList())
            </div>

我想要的是将下拉列表中的项目大小设置为h3。怎么样?

编辑:

我按照答案将尺寸设置为 24,但它选择了尺寸 13。

您可以像这样在 html 助手中使用新属性:

@Html.DropDownList("Country", new SelectList(Country).ToList(), new { @style= "font-size: 24px;" })