用於生成帶有樣式、標題和 Markdown 語法的警告框的短代碼。
成為我們的資助者或贊助商,以支持我們的工作。
style
索引 | 名稱 | 類型 | 必填 | 默認值 | 版本 | 示例 |
---|---|---|---|---|---|---|
#0 | style | string | - | primary | - | - |
primary
、secondary
、success
、danger
、warning
、info
、light
和 dark
。
1{{< bs/alert primary >}}
2A simple primary alert—check it out!
3{{< /bs/alert >}}
4
5{{< bs/alert secondary >}}
6A simple secondary alert—check it out!
7{{< /bs/alert >}}
8
9{{< bs/alert success >}}
10A simple success alert—check it out!
11{{< /bs/alert >}}
12
13{{< bs/alert danger >}}
14A simple danger alert—check it out!
15{{< /bs/alert >}}
16
17{{< bs/alert warning >}}
18A simple warning alert—check it out!
19{{< /bs/alert >}}
20
21{{< bs/alert info >}}
22A simple info alert—check it out!
23{{< /bs/alert >}}
24
25{{< bs/alert light >}}
26A simple light alert—check it out!
27{{< /bs/alert >}}
28
29{{< bs/alert dark >}}
30A simple dark alert—check it out!
31{{< /bs/alert >}}
A simple primary alert—check it out!
A simple secondary alert—check it out!
A simple success alert—check it out!
A simple danger alert—check it out!
A simple warning alert—check it out!
A simple info alert—check it out!
A simple light alert—check it out!
A simple dark alert—check it out!
1{{% bs/alert style=primary %}}
2A simple *primary alert* with Markdown—**check it out**!
3{{% /bs/alert %}}
A simple primary alert with Markdown—check it out!
bs/alert-link
允許於警告框內插入一個樣式化的鏈接。
text
索引 | 名稱 | 類型 | 必填 | 默認值 | 版本 | 示例 |
---|---|---|---|---|---|---|
#0 | text | string | ✓ | - | - | - |
鏈接文本。
url
索引 | 名稱 | 類型 | 必填 | 默認值 | 版本 | 示例 |
---|---|---|---|---|---|---|
#1 | url | string | ✓ | - | - | - |
鏈接地址。
1{{< bs/alert >}}
2A simple primary alert with {{< bs/alert-link "an example link" "#alert-link" >}}. Give it a click if you like.
3{{< /bs/alert >}}
4
5{{< bs/alert warning >}}
6A simple warning alert with {{< bs/alert-link "an example link" "#alert-link" >}}. Give it a click if you like.
7{{< /bs/alert >}}
A simple primary alert with an example link. Give it a click if you like.
A simple warning alert with an example link. Give it a click if you like.
bs/alert-heading
用於為警告框添加標題。
title
索引 | 名稱 | 類型 | 必填 | 默認值 | 版本 | 示例 |
---|---|---|---|---|---|---|
#0 | title | string | ✓ | - | - | - |
標題。
1{{% bs/alert success %}}
2{{< bs/alert-heading "Well done!" >}}
3Aww yeah, you _successfully_ read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
4{{% /bs/alert %}}
Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.