作业(css)

body{

}
a{
color:inherit;
text-decoration: none;
}
*{
margin: 0;
padding: 0;
}

hr{
height: 0;
border: none;
border-top: 1px solid #dedede;
}
ul,ol{
list-style: none;
}
h1,h2,h3,h4,h5,h6{
font-weight: normal;
}
.clearfix:after{
content: '';
display: block;
clear: both;
}

.topNavBar{
padding: 20px 0px 20px 0px;
position: fixed;
top: 0;
left: 0;
width: 100%
}
.topNavBar-inner{
padding: 0,16px;
}
.topNavBar nav > ul > li{
float: left;
margin-left: 17px;
margin-right: 17px;
}

.topNavBar nav > ul {
list-style: none;
margin: 0;
padding: 0;
}

.topNavBar nav{
padding-top: 5px;
padding-bottom: 2px;
}

.topNavBar nav > ul > li > a{
font-size: 12px;
color: #3d4450;
text-decoration: none;
font-weight: bold;
border-top: 3px solid transparent;
border-bottom: 3px solid transparent;
padding-top: 5px;
padding-bottom: 5px;
display: block;
}

.topNavBar nav > ul > li > a:hover{
border-bottom: 3px solid #e6686d;
}

.topNavBar .logo{
font-size: 24px;
font-family: "Arial Black";
padding-top: 3px;
padding-bottom:4px;
}
.topNavBar .logo .rs {
margin-right: 4px;
color: #e6686d;
}

.topNavBar .logo .card {
color: #9a9da2;
}

.banner {
height: 514px;
background-image: url(./img/image1.jpg);
background-position: center center;
background-size: cover;
}

.banner .mask{
height: 514px;
background-color:rgb(0,0,0,0.8);
}

.userCard{
max-width: 940px;
margin-left: auto;
margin-right: auto;
background-color: #fff;
box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.5);
}

.userCard .welcome{
background: #e6686d;
color: #fff;
display: inline-block;
padding: 4px 9px;
position: relative;
}

.userCard .welcome .triangle{
display: block;
border: 10px solid transparent;
width:0px;
height:0px;
border-left-color:#e6686d;
border-top-width:0px;
position: absolute;
left: 4px;
top: 100%;
}

.userCard .picture{
float: left;
margin-right: 65px;
}

.userCard .text{
float: left;
width: 450px;
}
.userCard .text h1{
margin-top: 25px;
}
.userCard .text hr{
margin: 20px 0;
}

.userCard .pictureAndText{
padding: 50px;
}

.userCard dl dt,
.userCard dl dd
{
float: left;
width: 30%;
padding: 5px 0;
}

.userCard dl dt
{
width: 30%;
font-weight: bolder;
}

.userCard dl dd
{
width: 70%;
color:#9da0a7;
}

.userCard > footer.media{
color: #e6686d;
text-align: center;
}

.userCard > footer.media > a{
display: inline-block;
border-radius: 50%;
width: 40px;
line-height: 30px;
padding: 5px 0;
margin: 16px;
}

.userCard > footer.media > a:hover{
background: #cf5d62;
}

.userCard svg{
width: 30px;
height: 30px;
fill: white;
vertical-align: top;

}

body > main{
margin-top: -400px;
}

body > main .downloadResume-wrapper{
text-align: center;
}

body > main .downloadResume{
font-size: 14px;
line-height: 16px;
padding: 21px 55px;
border: 1px solid #cdcfd1;
background: #efefef;
display: inline-block;
border-radius: 2px;
color: #3d4451;
font-weight: bold;
margin: 32px 0;
transition: box-shadow 0.3s;
}

body > main .downloadResume:hover{
box-shadow: 0px 4px 13px 0px rgba(0,0,0,0.5);
}

.selfIntroduction{
max-width: 940px;
margin-left: auto;
margin-right: auto;
text-align: center;
font-family: kai;
line-height: 1.8;
font-size: 18px;
}

section .skills,
section .portfolio{
max-width: 940px;
margin-left: auto;
margin-right: auto;
margin-top: 60px;
}

section .skills > h2{
color: #3d4451;
font-size: 34px;
line-height: 1.2;
font-weight: 600;
text-align: center;
}
section .portfolio > h2{
color: #3d4451;
font-size: 34px;
line-height: 1.2;
font-weight: 600;
text-align: center;
}
section .skills h3{
font-size: 14px;
line-height: 1.1;
padding-right: 40px;
}

section .skills > ol{
background: white;
box-shadow: 0px 4px 13px 0px rgba(0,0,0,0.5);
padding: 42px,50px 10px;
margin-top: 30px;
}

section .skills > ol >li{
float: left;
width: 48%;
box-sizing: border-box;
padding-right: 40px;
}

section .skills > ol >li:nth-child(even){
float: right;
}

section .skills .progressBar{
height: 5px;
background: #fae1e1;
margin: 4px 0 40px;
}

section .skills .progressBar> .progress{
height: 100%;
background: #e6686a;
width: 70%;
border-radius: 2px;
}
section .portfolio{
text-align: center;
margin-bottom: 100px;
}
section .portfolio > nav{
text-align: center;
}
section .portfolio > nav > ol{
border: 1px solid red;
margin: 0 auto;
display: inline-block;
vertical-align: top;

}
section .portfolio > nav > ol > li{
float: left;
margin-left: 40px;
cursor: pointer;
}

section .portfolio > nav > ol > li: :nth-child(1){
float: 0;
}
section .portfolio > nav{
display: inline-block;
vertical-align: top;
margin-top: 32px;
}

section .portfolio > nav .bar{
height: 5px;
background: white;
margin-top: 5px;
margin-bottom: 100px;
border-radius: 2px;
}
section .portfolio > nav .bar-inner{
height: 100%;
background: #cf5d62;
width: 10%;
margin-bottom: 100px;
border-radius: 2px;
transition: all 0.3s;

}

section .portfolio > nav .bar.state-1 .bar-inner{
margin-left: 0px;
width:50px;
}
section .portfolio > nav .bar.state-2 .bar-inner{
margin-left: 65px;
width:50px;
}
section .portfolio > nav .bar.state-3 .bar-inner{
margin-left: 140px;
width:96px;
}

section .portfolio .works{
position: relative;

}
section .portfolio .works > .big,
section .portfolio .works > .small{
position: absolute;
}

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 217,907评论 6 506
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,987评论 3 395
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 164,298评论 0 354
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,586评论 1 293
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,633评论 6 392
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,488评论 1 302
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,275评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,176评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,619评论 1 314
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,819评论 3 336
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,932评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,655评论 5 346
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,265评论 3 329
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,871评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,994评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,095评论 3 370
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,884评论 2 354

推荐阅读更多精彩内容

  • 深入理解傅里叶变换Mar 12, 2017 这原本是我在知乎上对傅立叶变换、拉普拉斯变换、Z变换的联系?为什么要进...
    价值趋势技术派阅读 5,760评论 2 2
  • 不会用代码框,所以看着有些乱套,,,,html部分 <!DOCTYPE html> 迅雷看看 ...
    这就是个帅气的名字阅读 1,534评论 0 0
  • 1、垂直对齐 如果你用CSS,则你会有困惑:我该怎么垂直对齐容器中的元素?现在,利用CSS3的Transform,...
    kiddings阅读 3,164评论 0 11
  • 问答题47 /72 常见浏览器兼容性问题与解决方案? 参考答案 (1)浏览器兼容问题一:不同浏览器的标签默认的外补...
    _Yfling阅读 13,753评论 1 92
  • 每日打卡 2018-6-18 姓名:毛小凤 公司:上海铸梦网络科技有限公司 【日精进打卡第21天】 【知―学习】 ...
    vickie8阅读 140评论 0 0