博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
HTML+CSS页面练习——legend第四部分
阅读量:5275 次
发布时间:2019-06-14

本文共 5576 字,大约阅读时间需要 18 分钟。

第四部分——Portfolio

简要介绍:

本部分内容看着比较多,其实它的许多地方是一样的。所以只需要设置好一个类的样式,就可以运用到它们所有的上面。

页面效果:

HTML代码:

Portfolio...

Ethan Marcotte Design

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

view project

A Book Apart

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

view project

Four Rules for Designers

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

view project

Ethan Marcotte Design

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

view project

A Book Apart

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

view project

Four Rules for Designers

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

view project

 

CSS代码:

#portfolio{            margin-top: 20px;            padding: 70px;        }        #portfolio .row{            text-align: center;        }        #portfolio .align{            text-align:center;            font-size: 6em;            margin: 10px 0 0 0;            padding: 0;        }        #portfolio h1{            text-align: center;            font-size: 3em;            font-family: 'Patua One',cursive;            margin: 0.4em 0 1em 0;        }        #portfolio h2{            text-align: left;            margin-top: 1em;            font-weight: bold;            font-family: 'Patua One',cursive;            text-transform: capitalize;                 /*控制文本大小写,capitalize表示文本中每个单词以大写字母开头*/        }        .mask2 img{            margin: 0 auto;            max-width: 100%;            display: block;            filter: alpha(opacity=80);                /*滤镜属性,定义元素的可视效果。设置元素的透明度为0.8*/            opacity: 0.8;            box-shadow: 1px 1px 10px rgba(0,0,0,0.2);            transition: all 0.3s ease-in-out;    /*渐变属性*/        }        .mask2 img:hover{            filter: alpha(opacity=99);            opacity: 1;           /*不透明*/        }        #portfolio .entry-content{            margin: 1em 0 2.5em;        }        #portfolio .span4{            display: inline-block; /*元素为行内块元素*/            width: 32%;        }        #portfolio p{            text-align: left;       /*左对齐*/            line-height: 25px;        }        #portfolio .more-link{            float: left;            text-decoration: none;            text-transform: uppercase;            /*控制文本大小写,uppercase表示文本中每个单词都是大写字母*/            font-family: 'Open Sans',serif;            font-weight: bold;            font-size: 0.9em;            color:#f0bf00;            margin: 12px 0 40px 0;        }        #portfolio .more-link:hover{            text-decoration: underline ;        }

 

总结:

本部分没有什么难点,就是调整样式比较繁琐。

遇到两个自己不熟悉的属性:

text-transform:控制内容的大小写。

filter:滤镜属性,定义元素的可视效果。

转载于:https://www.cnblogs.com/209yin/p/7594592.html

你可能感兴趣的文章
使用SCOM常用的一些ManagementPack
查看>>
SCSS & SASS Color 颜色函数用法
查看>>
《京东618实践:一元抢宝系统的数据库架构优化》阅读笔记
查看>>
[ASP.NET Core] Static File Middleware
查看>>
Bossies 2015: The Best of Open Source Software Awards
查看>>
Android 网络交互之MD5为什么要加盐
查看>>
【hdoj_2079】选课时间(母函数)
查看>>
Windows10开发手记-RelativePanel使用详解
查看>>
java之jsp页面语法
查看>>
Sql常用语法
查看>>
位操作
查看>>
如何调试NativeSample
查看>>
在 ubuntu下面利用libpcap编程
查看>>
ios不响应presentModalViewController界面的处理
查看>>
mysqldump 和 sql命令导入sql文件
查看>>
JSON字符串转换object错误:MorphDynaBean cannot be cast to com.softright.bean.TestBean,类中有集合类型的属性...
查看>>
《那些年啊,那些事——一个程序员的奋斗史》——60
查看>>
PLSQL 的简单命令之四
查看>>
软件设计风格(二)
查看>>
linux/unix lsof用法
查看>>