警告消息 Foundation 6
Warning message Foundation 6
我想使用 Foundation6 发出警告消息。
如果可能的话,类似 Bootstrap 消息:
在基础文档中,我们有这个:http://foundation.zurb.com/sites/docs/v/5.5.3/components/alert_boxes.html .
但它对我不起作用,就像我错过了导入(类 不起作用)。
有什么想法吗?
编辑
我的代码很简单:
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Foundation for Sites</title>
<link rel="stylesheet" href="css/my-css.css">
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/icons/foundation-icons.css">
</head>
<body ng-app="app">
<div class="row">
<div class="columns">
<div class="text-center">
<div data-alert class="alert-box warning round">
This is a warning alert that is rounded.
<a href="#" class="close">×</a>
</div>
app.css 是 Foundation 样式表的缩小版。
你看过 Foundation 6 文档了吗?警告消息在 Foundation 6 中称为标注,您可以将 class callout
添加到 div 以及另一个 class,具体取决于您想要的警报类型。对于警告,您可以使用:
<div class="callout warning">
<h5>This is a warning callout</h5>
</div>
查看 docs。
我想使用 Foundation6 发出警告消息。
如果可能的话,类似 Bootstrap 消息:
在基础文档中,我们有这个:http://foundation.zurb.com/sites/docs/v/5.5.3/components/alert_boxes.html .
但它对我不起作用,就像我错过了导入(类 不起作用)。
有什么想法吗?
编辑
我的代码很简单:
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Foundation for Sites</title>
<link rel="stylesheet" href="css/my-css.css">
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/icons/foundation-icons.css">
</head>
<body ng-app="app">
<div class="row">
<div class="columns">
<div class="text-center">
<div data-alert class="alert-box warning round">
This is a warning alert that is rounded.
<a href="#" class="close">×</a>
</div>
app.css 是 Foundation 样式表的缩小版。
你看过 Foundation 6 文档了吗?警告消息在 Foundation 6 中称为标注,您可以将 class callout
添加到 div 以及另一个 class,具体取决于您想要的警报类型。对于警告,您可以使用:
<div class="callout warning">
<h5>This is a warning callout</h5>
</div>
查看 docs。