多语言展示
当前在线:994今日阅读:159今日分享:18

CSS3点击收件箱列表查看邮件

CSS3点击收件箱列表查看邮件
工具/原料

notepad++

方法/步骤
1

新建html文档。

2

准备好需要用到的字体图标。

3

书写hmtl代码。

 
 
 
 

inbox  

 

4

书写css代码。.related a { display: inline-block; text-align: left; margin: 20px auto; padding: 10px 20px; opacity: 0.8; -webkit-transition: opacity 0.3s; transition: opacity 0.3s; -webkit-backface-visibility: hidden;}.related a:hover,.related a:active { opacity: 1;}.related a img { max-width: 100%; opacity: 0.8; border-radius: 4px;}.related a:hover img,.related a:active img { opacity: 1;}.related h3{font-family: "Microsoft YaHei", sans-serif;}.related a h3 { font-weight: 300; margin-top: 0.15em; color: #fff;}/* icomoon */.icon-htmleaf-home-outline:before { content: "\e5000";}.icon-htmleaf-arrow-forward-outline:before { content: "\e5001";}@media screen and (max-width: 50em) { .htmleaf-header { padding: 3em 10% 4em; } .htmleaf-header h1 {        font-size:2em;    }}@media screen and (max-width: 40em) { .htmleaf-header h1 { font-size: 1.5em; }}@media screen and (max-width: 30em) {    .htmleaf-header h1 {        font-size:1.2em;    }}

5

代码整体结构。

6

查看效果。