Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将设计与我当前的应用程序一起使用,并且我已经自定义了 css,因此闪光警报/通知出现在我用 css 创建的框中。
我想做的是可以选择通过单击右上角的 x 来关闭 div 框。我做了一些阅读,可以看到使用 Jquery 可以实现这一点,但是我的 jquery 技能目前处于新手级别。
有没有人使用设计在 Rails 应用程序中完成此操作?
任何帮助表示赞赏
您可以使用 jquery 组合一个简单的“关闭”功能。
试试这个。我认为它是你所追求的。
http://jsfiddle.net/ollie/FNXVX/1/