繁体   English   中英

将语义UI与asp.net Web表单一起使用

[英]Using Semantic UI with asp.net webforms

我正在尝试将语义UI集成到我现有的Asp.net Webforms项目中。一切都加载良好,并且控制台中没有此类错误。我正在尝试使用“ UI下拉菜单”。但是无法看到示例中的下拉菜单。

这是我的参考

 <head runat="server"> <title></title> <script src="Scripts/jquery-1.10.2.min.js" type="text/javascript"></script> <link href="semantic/dist/semantic.min.css" rel="stylesheet" /> <script src="semantic/dist/semantic.min.js" type="text/javascript"></script> </head> 

和asp.net代码

  <asp:DropDownList runat="server" ID="OfficeDropDown" CssClass="ui dropdown" /> 

无法在语义UI中看到弯曲的下拉列表。我在做什么错?请帮助。搜索了很多。无法获得解决方案。

好的,知道了。我忘了绑定下拉列表。

 $('#officeDropDown') .dropdown() ; 

工作了。

暂无
暂无

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

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