網(wǎng)頁(yè)制作1

最終結(jié)果:


the blah

目錄結(jié)構(gòu):


目錄結(jié)構(gòu)

網(wǎng)頁(yè)源代碼:
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>The blah</title>
  <link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
  <div class="header">
    <img src="images/blah.png">
    <ul class="nav">
      <li><a href="#">Home</a></li>
      <li><a href="#">Site</a></li>
      <li><a href="#">Other</a></li>
    </ul>
  </div>
  <div class="main-content">
    <h2>Article</h2>
    <ul class="article">
      <li>
        <img src="images/0001.jpg" width="100" height="90">
        <h3><a href="#">The blah</a></h3>
        <p>This is a dangerously delicious cake.</p>
      </li>
      <li>
        <img src="images/0002.jpg" width="100" height="90">
        <h3><a href="#">The blah</a></h3>
        <p>It's always taco night somewhere!</p>
      </li>
      <li>
        <img src="images/0003.jpg" width="100" height="90">
        <h3><a href="#">The blah</a></h3>
        <p>Omelette you in on a little secret </p>
      </li>
      <li>
        <img src="images/0004.jpg" width="100" height="90">
        <h3><a href="#">The blah</a></h3>
        <p>It's a sandwich.  That's all we .</p>
      </li>
    </ul>
  </div>
  <div class="footer">
    <p>? Mugglecoding</p>
  </div>
</body>
</html>

CSS文件:

body {
    padding: 0 0 0 0;
    background-color: #ffffff;
    background-image: url(images/bg3-dark.jpg);
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: Helvetica, Arial, sans-serif;
}
.main-content {
    width: 500px;
    padding: 20px 20px 20px 20px;
    border: 1px solid #dddddd;
    border-radius:25px;
    margin: 30px auto 0 auto;
    background: #f1f1f1;
    -webkit-box-shadow: 0 0 22px 0 rgba(50, 50, 50, 1);
    -moz-box-shadow:    0 0 22px 0 rgba(50, 50, 50, 1);
    box-shadow:         0 0 22px 0 rgba(50, 50, 50, 1);
}
.main-content p {
    line-height: 26px;
}
.main-content h2 {
    color: dimgray;
}

.nav {
    padding-left: 0;
    margin: 5px 0 20px 0;
    text-align: center;
}
.nav li {
    display: inline;
    padding-right: 10px;
}
.nav li:last-child {
    padding-right: 0;
}
.header {
    padding: 10px 10px 10px 10px;

}

.header a {
    color: #ffffff;
}
.header img {
    display: block;
    margin: 0 auto 0 auto;
}
.header h1 {
    text-align: center;
}

.article {
    list-style-type: none;
    padding: 0;
}
.article li {
    border: 1px solid #f6f8f8;
    background-color: #ffffff;
    height: 90px;
}
.article h3 {
    border-bottom: 0;
    margin-bottom: 5px;
}
.article a {
    color: #37a5f0;
    text-decoration: none;
}
.article img {
    float: left;
    padding-right: 11px;
}

.footer {
    margin-top: 20px;
}
.footer p {
    color: #aaaaaa;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    font-style: italic;
    text-transform: uppercase;
}






.post {
    padding-bottom: 2em;
}
.post-title {
    font-size: 2em;
    color: #222;
    margin-bottom: 0.2em;
}
.post-avatar {
    border-radius: 50px;
    float: right;
    margin-left: 1em;
}
.post-description {
    font-family: Georgia, "Cambria", serif;
    color: #444;
    line-height: 1.8em;
}
.post-meta {
    color: #999;
    font-size: 90%;
    margin: 0;
}

.post-category {
    margin: 0 0.1em;
    padding: 0.3em 1em;
    color: #fff;
    background: #999;
    font-size: 80%;
}
.post-category-design {
    background: #5aba59;
}
.post-category-pure {
    background: #4d85d1;
}
.post-category-yui {
    background: #8156a7;
}
.post-category-js {
    background: #df2d4f;
}

.post-images {
    margin: 1em 0;
}
.post-image-meta {
    margin-top: -3.5em;
    margin-left: 1em;
    color: #fff;
    text-shadow: 0 1px 1px #333;
}
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • PS切圖 快捷鍵收集 標(biāo)尺的顯示隱藏 ctrl+R 清楚所有參考線 Ctrl + ; 選區(qū)工作 添加到選區(qū) : ...
    ddai_Q閱讀 1,087評(píng)論 0 2
  • Android 自定義View的各種姿勢(shì)1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 179,048評(píng)論 25 709
  • 總播放時(shí)間6月6號(hào)到6月8號(hào)共3天 共計(jì)10臺(tái)車 播放時(shí)間6月6號(hào)兩臺(tái)車 地點(diǎn)八益家具城和太平園各一臺(tái),由乙方指定...
    杜茲復(fù)魚閱讀 273評(píng)論 1 0
  • 晚上好#易效能 # 蔣小園 2017/07/21(246/300) 【不忘初心,堅(jiān)持始終】 健康:作息《昨晚今早》...
    圓圓jXY閱讀 183評(píng)論 0 0
  • 上學(xué)期間,周圍的同學(xué)給我起了綽號(hào):睡神。在他們眼里,一天的24個(gè)小時(shí)里,我有20個(gè)小時(shí)都在睡覺。雖然沒有他們說(shuō)那么...
    淼淋閱讀 800評(píng)論 0 1

友情鏈接更多精彩內(nèi)容