Foundation 面板

2022-08-05 15:09 更新

Foundation 面板是一個(gè)灰色邊框,內(nèi)容含有內(nèi)邊距的模塊??梢允褂?.panel 類來(lái)創(chuàng)建:

實(shí)例

<div class="panel">
  <h3>標(biāo)題</h3>
  <p>文本內(nèi)容..</p>
</div>

嘗試一下 ?

面板顏色

使用 .callout 類將面板顏色修改為淺藍(lán):

實(shí)例

<div class="panel callout">
  <h3>標(biāo)題</h3>
  <p>文本內(nèi)容..</p>
</div>

嘗試一下 ?

圓角面板

使用 .radius 類將面板設(shè)置為圓角:

實(shí)例

<div class="panel radius">
  <h3>標(biāo)題</h3>
  <p>文本內(nèi)容..</p>
</div>

嘗試一下 ?

自定義面板

可以使用 CSS 來(lái)自定義面板,以下實(shí)例中我們將面板作為一個(gè)卡片:

實(shí)例

<style>
.panel {
    padding: 0;
    border: none;
    width: 50%;
}
div.container {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}
img {
    width: 100%;
}
</style>

<div class="panel">
  <img src="http://www.o2fo.com/wp-content/uploads/2015/11/20121204024112919.jpg" alt="Cinque Terre" >
  <div class="container">
    <h4>長(zhǎng)城</h4>
    <p>不到長(zhǎng)城非好漢?。。?span id="zftxrf1" class="highLT"></p>
  </div>
</div>

嘗試一下 ?
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

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

編程獅公眾號(hào)