国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

Foundation 提醒框

2022-08-05 15:09 更新

Foundation 可以很簡(jiǎn)單的創(chuàng)建一個(gè)提醒框:

提醒框可以使用 .alert-box 類(lèi)創(chuàng)建, 可以添加可選的類(lèi): .secondary, .success, .info, .warning.alert:

實(shí)例

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

嘗試一下 ?
Note  提醒框的寬度為容器的 100%。

圓角提醒框

.radius.round 類(lèi)用于為提醒框添加圓角:

實(shí)例

<div data-alert class="alert-box success radius">
  <strong>Success!</strong> Alert box with a radius.
</div>

<div data-alert class="alert-box info round">
  <strong>Info!</strong> Alert box that is rounded.
</div>

嘗試一下 ?

關(guān)閉提醒框

要關(guān)閉提醒框,可以在連接或按鈕元素上添加 class="close" 類(lèi),并初始化 Foundation JS:

實(shí)例

<div data-alert class="alert-box">
  This is a default alert box with closing functionality.
  <a href="#" class="close">×< /a>
</div>

<script>
// Initialize Foundation JS For Functionality
$(document).ready(function() {
    $(document).foundation();
})
</script>

嘗試一下 ?
Note  × (×) 是一個(gè) HTML 字符實(shí)體表示一個(gè)關(guān)閉按鈕的圖標(biāo),而不是字母 "x"。
以上內(nèi)容是否對(duì)您有幫助:
在線(xiàn)筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)