中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

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

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

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

杭锦后旗| 宁都县| 华池县| 伊宁市| SHOW| 柳江县| 辽宁省| 利川市| 龙游县| 六盘水市| 东阳市| 华容县| 习水县| 蛟河市| 许昌市| 古浪县| 怀柔区| 惠安县| 老河口市| 隆子县| 盐亭县| 德保县| 云梦县| 长寿区| 新安县| 霍林郭勒市| 体育| 科尔| 洪江市| 宜宾市| 南京市| 大宁县| 湟中县| 潜山县| 柳林县| 凌云县| 曲阜市| 惠安县| 会宁县| 冕宁县| 斗六市|