SlideShare a Scribd company logo
Absolute Layout
Howard 2013/01/25
需求
問題
 怎麼設計 ?
解決方案



                                     position:absolute;
                                     top: 50px + 5px + 5px
                                     right: 0
                                     bottom: 0
                                     left: 0
                                     overflow:auto;




       Positon:relative | absolute


                                      http://jsfiddle.net/yeegaka/8xGFS/10/
基本結構
 <div>

   <div class="container flex-table">

    <div class="header flex-row flex-row-height"></div>

    <div class="buttonset flex-row flex-row-height"></div>

    <div class="content flex-row"></div>

   <div>

 </div>
巢狀用法



       dataContent flex-row flex-table

       position:absolute;
       top: 50px + 5px + 5px
       right: 0
       bottom: 0
       left: 0
       overflow:auto;



             http://jsfiddle.net/yeegaka/bLaPD/5/
Q&A

More Related Content

More from LearningTech

ReactJs
ReactJsReactJs
ReactJs
LearningTech
 
Docker
DockerDocker
Docker
LearningTech
 
Semantic ui
Semantic uiSemantic ui
Semantic ui
LearningTech
 
node.js errors
node.js errorsnode.js errors
node.js errors
LearningTech
 
Process control nodejs
Process control nodejsProcess control nodejs
Process control nodejs
LearningTech
 
Expression tree
Expression treeExpression tree
Expression tree
LearningTech
 
SQL 效能調校
SQL 效能調校SQL 效能調校
SQL 效能調校
LearningTech
 
flexbox report
flexbox reportflexbox report
flexbox report
LearningTech
 
Vic weekly learning_20160504
Vic weekly learning_20160504Vic weekly learning_20160504
Vic weekly learning_20160504
LearningTech
 
Reflection &amp; activator
Reflection &amp; activatorReflection &amp; activator
Reflection &amp; activator
LearningTech
 
Peggy markdown
Peggy markdownPeggy markdown
Peggy markdown
LearningTech
 
Node child process
Node child processNode child process
Node child process
LearningTech
 
20160415ken.lee
20160415ken.lee20160415ken.lee
20160415ken.lee
LearningTech
 
Peggy elasticsearch應用
Peggy elasticsearch應用Peggy elasticsearch應用
Peggy elasticsearch應用
LearningTech
 
Expression tree
Expression treeExpression tree
Expression tree
LearningTech
 
Vic weekly learning_20160325
Vic weekly learning_20160325Vic weekly learning_20160325
Vic weekly learning_20160325
LearningTech
 
D3js learning tips
D3js learning tipsD3js learning tips
D3js learning tips
LearningTech
 
git command
git commandgit command
git command
LearningTech
 
Asp.net MVC DI
Asp.net MVC DIAsp.net MVC DI
Asp.net MVC DI
LearningTech
 
Vic weekly learning_20151127
Vic weekly learning_20151127Vic weekly learning_20151127
Vic weekly learning_20151127
LearningTech
 

More from LearningTech (20)

ReactJs
ReactJsReactJs
ReactJs
 
Docker
DockerDocker
Docker
 
Semantic ui
Semantic uiSemantic ui
Semantic ui
 
node.js errors
node.js errorsnode.js errors
node.js errors
 
Process control nodejs
Process control nodejsProcess control nodejs
Process control nodejs
 
Expression tree
Expression treeExpression tree
Expression tree
 
SQL 效能調校
SQL 效能調校SQL 效能調校
SQL 效能調校
 
flexbox report
flexbox reportflexbox report
flexbox report
 
Vic weekly learning_20160504
Vic weekly learning_20160504Vic weekly learning_20160504
Vic weekly learning_20160504
 
Reflection &amp; activator
Reflection &amp; activatorReflection &amp; activator
Reflection &amp; activator
 
Peggy markdown
Peggy markdownPeggy markdown
Peggy markdown
 
Node child process
Node child processNode child process
Node child process
 
20160415ken.lee
20160415ken.lee20160415ken.lee
20160415ken.lee
 
Peggy elasticsearch應用
Peggy elasticsearch應用Peggy elasticsearch應用
Peggy elasticsearch應用
 
Expression tree
Expression treeExpression tree
Expression tree
 
Vic weekly learning_20160325
Vic weekly learning_20160325Vic weekly learning_20160325
Vic weekly learning_20160325
 
D3js learning tips
D3js learning tipsD3js learning tips
D3js learning tips
 
git command
git commandgit command
git command
 
Asp.net MVC DI
Asp.net MVC DIAsp.net MVC DI
Asp.net MVC DI
 
Vic weekly learning_20151127
Vic weekly learning_20151127Vic weekly learning_20151127
Vic weekly learning_20151127
 

Absolute layout

  • 4. 解決方案 position:absolute; top: 50px + 5px + 5px right: 0 bottom: 0 left: 0 overflow:auto; Positon:relative | absolute http://jsfiddle.net/yeegaka/8xGFS/10/
  • 5. 基本結構  <div>  <div class="container flex-table">  <div class="header flex-row flex-row-height"></div>  <div class="buttonset flex-row flex-row-height"></div>  <div class="content flex-row"></div>  <div>  </div>
  • 6. 巢狀用法 dataContent flex-row flex-table position:absolute; top: 50px + 5px + 5px right: 0 bottom: 0 left: 0 overflow:auto; http://jsfiddle.net/yeegaka/bLaPD/5/
  • 7. Q&A