代码之家  ›  专栏  ›  技术社区  ›  user3025288

如何使用foundation创建页眉和页脚,就像foundation网站一样

  •  0
  • user3025288  · 技术社区  · 10 年前

    我是CSS和fronted框架的新手。

    如何使用foundation创建顶部页脚、订阅部分和页脚,与foundation网站中的类似。

    我已经尝试了以下使用基础css。。

    <div class="row full-width" id="subsc">
          <div class="large-4 columns">
            </div>
          <div class="large-8 columns">
            <div class="large-5 large-offset-6 columns">
            <label for="right-label" class="right inline">Label</label>
            <input type="text" id="right-label" placeholder="Inline Text Input">
            <a class="button" href=#>Get a Call back !</a>
            </div>
          </div>          
        </div>
    
    1 回复  |  直到 10 年前
        1
  •  1
  •   cs1193    10 年前

    我认为这是需要的。

    HTML格式

    <footer>
        <div class="top">
    
        </div>
        <div class="center">
    
        </div>
        <div class="bottom">
    
        </div>
    </footer>
    

    CSS格式

    footer {
        position: relative;
        width: 100%;
        min-height: 200px;
    }
    
    footer .top {
        position: relative;
        width: 100%;
        background-color: #085A78;
        min-height: 50px;
    }
    
    footer .center {
        position: relative;
        width: 100%;
        background-color: #074E68;
        min-height: 150px;
    }
    
    footer .bottom {
        position: relative;
        width: 100%;
        background-color: #333333;
        min-height: 50px;
    }
    

    (从基础复制的颜色) DEMO