Foundation 用于开发响应式的 HTML, CSS and JavaScript 框架。
Foundation 是一个易用、强大而且灵活的框架,用于构建基于任何设备上的 Web 应用。
Foundation 是一个以移动优先的流行框架。
Foundation 提醒框 语法
说明:提醒框可以使用 .alert-box 类创建, 可以添加可选的类: .secondary, .success, .info, .warning 或 .alert
Foundation 提醒框 示例
<!DOCTYPE html> <html> <head> <title>Foundation 实例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdn.bootcss.com/foundation/5.5.3/css/foundation.min.css"> <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.bootcss.com/foundation/5.5.3/js/foundation.min.js"></script> <script src="https://cdn.bootcss.com/foundation/5.5.3/js/vendor/modernizr.js"></script> </head> <body> <div style="padding:20px;"> <h2>提醒框</h2> <div data-alert class="alert-box"> This is a default alert box. </div> <div data-alert class="alert-box secondary"> This is a secondary alert box. </div> <div data-alert class="alert-box success"> <strong>Success!</strong> This alert box indicates a successful or positive action. </div> <div data-alert class="alert-box info"> <strong>Info!</strong> This alert box indicates a neutral informative change or action. </div> <div data-alert class="alert-box warning"> <strong>Warning!</strong> This alert box indicates a warning that might need attention. </div> <div data-alert class="alert-box alert"> <strong>Alert!</strong> This alert box indicates a dangerous or potentially negative action. </div> </div> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例
热门推荐
- CSS框架Foundation如何实现导航文字高亮_Foundation类与active状态结合
- iOS开发中解析XML报错怎么解决? Foundation框架中XMLParser的错误代理方法详解
- .NET基金会(.NET Foundation)是什么?它如何影响.NET的生态发展
- CSS框架Foundation如何实现表单控件自适应_Foundation input类结合grid系统
- CSS框架Foundation如何实现图标按钮动画_Foundation button-icon类结合hover
- CSS框架Foundation如何实现按钮悬停动画_Foundation button类与hover结合