亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

HTML5和CSS3扁平化風格博客

發布時間:2020-08-03 18:00:22 來源:網絡 閱讀:920 作者:素顏豬 欄目:移動開發

效果:

HTML5和CSS3扁平化風格博客

HTML5和CSS3扁平化風格博客

HTML5和CSS3扁平化風格博客

HTML5和CSS3扁平化風格博客

HTML5和CSS3扁平化風格博客

HTML5和CSS3扁平化風格博客

代碼:

html結果

<!DOCTYPE html>

<html>

<head>

<title></title>

<meta charset="utf-8" />

<link rel="stylesheet" type="text/css" href="https://necolas.github.io/normalize.css/3.0.2/normalize.css">

<link rel="stylesheet" type="text/css" href="main.css">

</head>

<body>

<div class="main-wrapper">

<!-- 頁頭 S -->

<header>

<nav>

<div class="logo"><a href="">素顏豬</a></div>

<ul>

<li><a href="">首頁</a></li>

<li><a href="">圖書</a></li>

<li><a href="">相冊</a></li>

<li><a href="">視頻</a></li>

<li><a href="">音樂</a></li>

</ul>

</nav>

<div id="banner">

<div class="inner">

<h2>素顏豬</h2>

<p>

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod

tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,

</p>

<button>了解我</button>

<div class="more">

更多

</div>

</div>

</div>

</header>

<!-- 頁頭 E -->


<!-- 內容 S -->

<div class="content">

<section class="green-section">

<div class="wrapper">

<h3>標題</h3>

<div class="hr"></div>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod

proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

<div class="icon-group">

<span class="icon">item1</span>

<span class="icon">item2</span>

<span class="icon">item3</span>

</div>

</section>

<section class="gray-section">

<div class="article-preview">

<div class="img-section">

<img src="imgs/fj1.jpg">

</div>

<div class="text-section">

<h3>標題</h3>

<div class="sub-heading">副標題</div>

<p>Lorem roident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

</div>

<div class="article-preview">

<div class="text-section">

<h3>標題</h3>

<div class="sub-heading">副標題</div>

<p>Lorem roident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

<div class="img-section">

<img src="imgs/fj2.jpg">

</div>

</div>

<div class="article-preview">

<div class="img-section">

<img src="imgs/fj3.jpg">

</div>

<div class="text-section">

<h3>標題</h3>

<div class="sub-heading">副標題</div>

<p>Lorem roident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

</div>

</section>

<section class="purple-section">

<div class="wrapper">

<div class="heading-wrapper">

<h3>標題</h3>

<div class="hr"></div>

<div class="sub-heading">

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod

</div>

</div>

<div class="card-group clearfix">

<div class="card">

<h4>標題</h4>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod

tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,

quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo

consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse

cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non

proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

<div class="card">

<h4>標題</h4>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod

tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,

quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo

consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse

cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non

proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

<div class="card">

<h4>標題</h4>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod

tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,

quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo

consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse

cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non

proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

<div class="card">

<h4>標題</h4>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod

tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,

quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo

consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse

cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non

proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

</div>

</div>

</section>

</div>

<!-- 內容 E -->


<!-- 頁腳 S -->

<footer>

<ul class="share-group">

<li>item1</li>

<li>item1</li>

<li>item1</li>

<li>item1</li>

</ul>

<div class="copy">&copy;素顏豬</div>

</footer>

<!-- 頁腳 E -->

</div>

</body>

</html>

css樣式

/*頁頭style S*/

nav{background:transparent;height: 50px}

#banner{background: transparent;height: 500px}


nav ul{list-style: none;margin: 0;float: right;}

nav ul li,nav .logo{display: inline-block;line-height: 50px;margin-right: 20px;}

nav ul li a,nav .logo a{line-height: inherit;text-decoration: none; display: inline-block;height: inherit;color: #fff}

nav .logo{float: left;font-size: 20px;font-weight: bold;letter-spacing: 2px;}

#banner .inner{max-width: 300px;text-align: center;margin: 0 auto;position: relative;top: 80px}

#banner .inner h2{margin:0;}


button{border: none;background:#333;color: #eee;padding: 10px}

#banner .inner .more{margin-top: 80px}

/*頁頭style E*/


/*內容style S*/

.green-section{text-align: center;background:#089DB0;color: #fff;padding: 100px 0;}

.wrapper{max-width: 1080px;margin: 0 auto;}

.hr{width: 100%;height: 2px; margin:20px auto;}

.green-section .hr{background: #078494;width: 50%;}

.icon-group{margin-top: 40px;}

.green-section .icon-group .icon{display: inline-block;width: 80px;height: 80px;background: #0D6F7C;transform:rotate(45deg);margin:20px;}



.gray-section{background:#252f34;color: #fff}

.gray-section .img-section {width: 40%;}

.img-section img{width: 100%}

.gray-section .text-section{width: 60%;}

.article-preview > div{float: left;font-size: 0px}

.article-preview:nth-child(odd){background-color: rgba(255,255,255,0.05);}

.article-preview:after{content: '';clear: both;display: block;}

.text-section{position: relative;top: 60px;left: 50px;}

.text-section h3{margin-bottom: 20px;}

.text-section .sub-heading{font-size: 22px;margin-top: 0px}

.text-section p{font-size: 18px;letter-spacing: 1px;}

.text-section > *{max-width: 90%;}



.purple-section{background:#3f3965;color: #fff;padding: 80px;}

.purple-section .heading-wrapper{text-align: center;}

.heading-wrapper .hr{background:#373259;width: 50%}

.card{float: left;width: 50%;min-height: 300px;padding: 50px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;/*border: 1px solid white*/}

.clearfix:after{content: '';clear: both;display: block;}

.card p{font-size: 18px;letter-spacing: 1px;}

.card:first-child{background:rgba(0,0,0,0.05);}

.card:nth-child(2){background:rgba(0,0,0,0.09);}

.card:nth-child(3){background:rgba(0,0,0,0.14);}

.card:nth-child(4){background:rgba(0,0,0,0.18);}


/*內容style E*/


/*頁腳style S*/

footer{background:#333;color: #fff;min-height: 200px;text-align: center;}

ul.share-group{display: block;width: 1080px;margin: 0 auto;padding: 30px}

.share-group li{display: inline-block;padding: 10px}

.copy{padding: 20px}

/*頁腳style E*/


.main-wrapper{background:#444 url(imgs/cwz3.jpg);background-attachment: fixed;background-repeat: no-repeat;background-size: cover;background-position: center;}

HTML5和CSS3扁平化風格博客


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

苍溪县| 永吉县| 万山特区| 军事| 康定县| 类乌齐县| 剑阁县| 宜章县| 湘潭市| 永川市| 临清市| 和龙市| 大名县| 那坡县| 岑巩县| 图木舒克市| 萍乡市| 台中县| 西青区| 桓台县| 韶山市| 盈江县| 绥滨县| 陈巴尔虎旗| 孝感市| 乳山市| 获嘉县| 阳山县| 汶上县| 宜兴市| 高尔夫| 扶风县| 荆州市| 灵丘县| 沙湾县| 孝昌县| 正宁县| 依安县| 上高县| 奇台县| 玉环县|