Created
April 24, 2017 01:18
-
-
Save towry/4a80467b932a9a845d5b14c8653df155 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/labebu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body { | |
padding-top: 3rem; | |
} | |
.row { | |
display: flex; | |
flex-wrap: wrap; | |
flex-direction: row-reverse; | |
flex-basis: 100%; | |
justify-content: space-between; | |
} | |
.a { | |
flex-grow: 1; | |
flex-basis: 10%; | |
white-space: nowrap; | |
/* text-align: right; */ | |
background-color: green; | |
} | |
.b { | |
white-space: nowrap; | |
flex-basis: 60%; | |
flex-shrink: 2; | |
flex-grow: 1; | |
} | |
.i { | |
border: 1px solid red; | |
} | |
.row_1 { | |
display: flex; | |
flex-direction: row; | |
} | |
.c { | |
flex-basis: content; | |
align-self: flex-end; | |
background-color: red; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="row_1"> | |
<div class="row"> | |
<div class="a i"> | |
上海, 南京, | |
</div> | |
<div class="b i"> | |
迪斯尼科技有限公司点击附件 | |
</div> | |
</div> | |
<div class="c">READ</div> | |
</div> | |
<script id="jsbin-source-css" type="text/css">body { | |
padding-top: 3rem; | |
} | |
.row { | |
display: flex; | |
flex-wrap: wrap; | |
flex-direction: row-reverse; | |
flex-basis: 100%; | |
justify-content: space-between; | |
} | |
.a { | |
flex-grow: 1; | |
flex-basis: 10%; | |
white-space: nowrap; | |
/* text-align: right; */ | |
background-color: green; | |
} | |
.b { | |
white-space: nowrap; | |
flex-basis: 60%; | |
flex-shrink: 2; | |
flex-grow: 1; | |
} | |
.i { | |
border: 1px solid red; | |
} | |
.row_1 { | |
display: flex; | |
flex-direction: row; | |
} | |
.c { | |
flex-basis: content; | |
align-self: flex-end; | |
background-color: red; | |
}</script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
padding-top: 3rem; | |
} | |
.row { | |
display: flex; | |
flex-wrap: wrap; | |
flex-direction: row-reverse; | |
flex-basis: 100%; | |
justify-content: space-between; | |
} | |
.a { | |
flex-grow: 1; | |
flex-basis: 10%; | |
white-space: nowrap; | |
/* text-align: right; */ | |
background-color: green; | |
} | |
.b { | |
white-space: nowrap; | |
flex-basis: 60%; | |
flex-shrink: 2; | |
flex-grow: 1; | |
} | |
.i { | |
border: 1px solid red; | |
} | |
.row_1 { | |
display: flex; | |
flex-direction: row; | |
} | |
.c { | |
flex-basis: content; | |
align-self: flex-end; | |
background-color: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment