Coder Social home page Coder Social logo

ifezerobasiscollege's Introduction

三种简历的制作

第一种简历

flex布局设置父级元素布局方式以及子项目在主轴方向排列方式,使二级标题后的信息水平排列,设置flex属性值定义子项目的缩放、占据位置。

.info-contact{
    display: flex;
    justify-content: flex-start;
}
.info-contact p{
    flex:0 1 250px;
}

第二种简历

设置main标签display:flex将简历分成左右两栏布局,对于右栏处理方式与第一种类似

main{
    margin: 0 auto;
    width: 75%;
    display: flex;
}
.left{
    background-color: rgb(101,165,250);
    flex: 0 1 200px;
}
.right{
    padding-left: 20px;
    flex: 0 1 800px;
}
.info-contact{
    display: flex;
    justify-content: flex-start;
}
.info-contact p{
    flex:0 1 250px;
    font-size: 20px;
}

第三种简历

将二级标题正常显示,子元素通过绝对定位放置

.col{
    width: 100%;
    border: 1px solid rgb(211, 208, 208);
    height: 110px;
    position: relative;
}
h2{
    height: 110px;
    width: 110px;
    background-color: rgb(201, 197, 197);
    font-size: 20px; 
    line-height: 110px;
    text-align: center;
}
p{
    display: inline-block;
    margin-right: 50px;  
}
.info-contact,.row-second{
    position: absolute;
    top:10px;
    left: 110px;    
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.