简体   繁体   English

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

[英]Using Semantic UI with asp.net webforms

I am trying to integrate Semantic UI in my existing Asp.net webforms project.Everything loads well and theres no such error in console.I am trying to use the "ui dropdown"..but cant see the dropdown like in examples. 我正在尝试将语义UI集成到我现有的Asp.net Webforms项目中。一切都加载良好,并且控制台中没有此类错误。我正在尝试使用“ UI下拉菜单”。但是无法看到示例中的下拉菜单。

Here is my references 这是我的参考

 <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> 

And the asp.net code 和asp.net代码

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

Cant see the curvy dropdown like in Semantic UI..What am i doing wrong?Help please.Searched a lot.Couldnt get the solution. 无法在语义UI中看到弯曲的下拉列表。我在做什么错?请帮助。搜索了很多。无法获得解决方案。

Ok got it..I forgot to bind the dropdownlist. 好的,知道了。我忘了绑定下拉列表。

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

worked. 工作了。

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

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