Senarai harga foundation


Senarai harga boleh digunakan untuk mempamerkan produk perusahaan:

Instance

<!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="http://static.php.cn/assets/foundation-5.5.3/foundation.min.css">
  <script src="http://static.php.cn/assets/jquery/2.0.3/jquery.min.js"></script>
  <script src="http://static.php.cn/assets/foundation-5.5.3/js/foundation.min.js"></script>
  <script src="http://static.php.cn/assets/foundation-5.5.3/js/vendor/modernizr.js"></script>
</head>
<body>

<div style="padding:20px;">
  <h2>价格表</h2>
  <ul class="pricing-table">
    <li class="title">Basic</li>
    <li class="price">.99</li>
    <li class="description">Great for small business</li>
    <li class="bullet-item">24/7 Support</li>
    <li class="bullet-item">15GB Storage</li>
    <li class="bullet-item">1GB Bandwidth</li>
    <li class="cta-button"><a class="a button" href="#">Sign Up</a></li>
  </ul>
</div>

</body>
</html>

Run Instance »

Klik " Butang Jalankan Contoh" " untuk melihat kejadian dalam talian

Analisis kejadian

  • ul.pricing-table - Tentukan senarai harga

  • li.title - Tentukan tajuk produk (latar belakang hitam)

  • li.price - Tentukan harga (item besar dengan fon latar belakang kelabu)

  • li.description - Tentukan penerangan produk (jika perlu)

  • li.bullet-item - Tentukan ciri produk

  • li.ca-button - Teks butang (cth. "Beli", "Sertai", "Daftar", dsb.)

Nota: Jadual memenuhi 100% lebar bekas dan semua item mempunyai sempadan dan berpusat .


Grid Senarai Harga

Contoh berikut menunjukkan harga tiga produk perusahaan (tiga item dibahagikan sama lebarnya):

Contoh

<!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="http://static.php.cn/assets/foundation-5.5.3/foundation.min.css">
  <script src="http://static.php.cn/assets/jquery/2.0.3/jquery.min.js"></script>
  <script src="http://static.php.cn/assets/foundation-5.5.3/js/foundation.min.js"></script>
  <script src="http://static.php.cn/assets/foundation-5.5.3/js/vendor/modernizr.js"></script>
</head>
<body>

<div class="row">
  <h2>网格中的价格表</h2>
  <div class="medium-4 columns">
    <ul class="pricing-table">
      <li class="title">Basic</li>
      <li class="price">.99</li>
      <li class="description">Great for small business</li>
      <li class="bullet-item">24/7 Support</li>
      <li class="bullet-item">15GB Storage</li>
      <li class="bullet-item">1GB Bandwidth</li>
      <li class="cta-button"><a class="a button" href="#">Sign Up</a></li>
    </ul>
  </div>
  <div class="medium-4 columns">
    <ul class="pricing-table">
      <li class="title">Pro</li>
      <li class="price">.99</li>
      <li class="description">For the Average Joe</li>
      <li class="bullet-item">24/7 Support</li>
      <li class="bullet-item">25GB Storage</li>
      <li class="bullet-item">2GB Bandwidth</li>
      <li class="cta-button"><a class="a button" href="#">Sign Up</a></li>
    </ul>
  </div>
  <div class="medium-4 columns">
    <ul class="pricing-table">
      <li class="title">Premium</li>
      <li class="price">.99</li>
      <li class="description">When only the best is an option</li>
      <li class="bullet-item">24/7 Support</li>
      <li class="bullet-item">Unlimited Storage</li>
      <li class="bullet-item">Unlimited Bandwidth</li>
      <li class="cta-button"><a class="a button" href="#">Sign Up</a></li>
    </ul>
  </div>
</div>
  
</body>
</html>

Jalankan contoh»

Klik butang "Jalankan contoh" untuk melihat contoh dalam talian