overflow(2)
2015-10-10 12:54
274 查看
9、内部浮动无影响
.clearFix{overflow: hidden; zoom: 1}.clear{zoom: 1}
.clear:after{content: ''; display: table;clear: both}
10、overflow 的 两栏自适应布局
设置左边浮动,右边overflow.left { float: left; width: 128px }
.right { min-height: 190px; overflow: hidden; }
11、绝对定位元素不总是被父级overflow属性剪裁,尤其是overflow 在绝对定位元素机器包含块之间的时候。
12、ellipsis 文字溢出点点点省略
text-overflow: ellipsis13、overflow 与 锚点,制作单页面应用
<!DOCTYPE html><html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
.box{
width: 300px;;
height: 300px;
border: 1px solid #ddd;
overflow: hidden;
}
.list{
text-align: center;
width: 300px;;
height: 300px;
font-size: 50px;
line-height: 300px;
}
#one{
background-color: #ff0043;
}
#two{
background-color: #00ff00;
}
#three{
background-color: #c06090;
}
#four{
background-color: #a069c3;
}
.an{
display: inline-block;
text-decoration: none;
color: #ffffff;
width: 50px;
height: 30px;
line-height: 30px;
text-align: center;
background-color: #cce2c1;
}
</style>
</head>
<body>
<div class="box">
<div class="list" id="one">1</div>
<div class="list" id="two">2</div>
<div class="list" id="three">3</div>
<div class="list" id="four">4</div>
</div>
<div class="links">
<a class="an" href="#one">1</a>
<a class="an" href="#two">2</a>
<a class="an" href="#three">3</a>
<a class="an" href="#four">4</a>
</div>
</body>
</html>
相关文章推荐
- 网马生成器 MS Internet Explorer XML Parsing Buffer Overflow Exploit (vista) 0day
- 修正IE下使用CSS属性overflow的bug
- 用margin和overflow属性实现div间距的方法
- 积累总结:overflow的CSS属性
- 点击切换样式表实现内容折叠与展开(overflow)
- bulk传输bushound显示buffer overrun
- android 里的actionbar最右边的overflow功能的实现
- parse in programming
- 滚动条
- 如何优雅地使用 Stack Overflow?
- 文本多余部分...显示
- Chrome 和 IE9+浏览器的Ctrl+F 查找功能会影响页面渲染
- overflow的使用
- Android ActionBar完全解析,使用官方推荐的最佳导航栏(下)
- overflow:hidden;text-overflow:ellipsis;在table的td中失效?
- 给div设置滚动条
- actionbar强制显示overflow menu
- 神奇的overflow:hidden及其背后的原理
- ie7下,overflow: b71d hidden失效及解决办法
- Java Long 在Integer的overflow的范围overflow