css显示倒置柱状图,认识bottom属性
来源:互联网 发布:客户经理好用软件 编辑:程序博客网 时间:2024/06/06 13:12
<div class="leftFloat labelHotContainer"> <span class="labelHot"><b class="labelHotValue labelHotValue1"> <em>2012</em></b></span> <span class="labelHot"><b class="labelHotValue labelHotValue2"> <em>2012</em></b></span> <span class="labelHot"><b class="labelHotValue labelHotValue3"> <em>2012</em></b></span> <span class="labelHot"><b class="labelHotValue labelHotValue4"> <em>2012</em></b></span> <span class="labelHot"><b class="labelHotValue labelHotValue5"> <em>2012</em></b></span> <span class="labelHot"><b class="labelHotValue labelHotValue6"> <em>2012</em></b></span> <span class="labelHot"><b class="labelHotValue labelHotValue7"> <em>2012</em></b></span> </div>
#rightContent .labelHotContainer{width:100px;margin-top: 10px;margin-left: 20px;}#rightContent .labelHotContainer .labelHot{display:block;float:left;height:30px;width:7px;margin-right: 2px;}#rightContent .labelHotContainer .labelHotValue{position:relative;border-bottom: 1px solid #A8C082;background: #B9D38F;width: 7px;display: block;}#rightContent .labelHotContainer .labelHotValue1{height:10%;}#rightContent .labelHotContainer .labelHotValue2{height:30%;}#rightContent .labelHotContainer .labelHotValue3{height:40%;}#rightContent .labelHotContainer .labelHotValue4{height:50%;}#rightContent .labelHotContainer .labelHotValue5{height:70%;}#rightContent .labelHotContainer .labelHotValue6{height:80%;}#rightContent .labelHotContainer .labelHotValue7{height:100%;}#rightContent .labelHotContainer em{ position:absolute; display:none;}
定义和用法
bottom 属性规定元素的底部边缘。该属性定义了定位元素下外边距边界与其包含块下边界之间的偏移。
注释:如果 "position" 属性的值为 "static",那么设置 "bottom" 属性不会产生任何效果。
说明
对于 static 元素,为 auto;对于长度值,则为相应的绝对长度;对于百分比数值,为指定值;否则为 auto。
对于相对定义元素,如果 bottom 和 top 都是 auto,其计算值则都是 0;如果其中之一为 auto,则取另一个值的相反数;如果二者都不是 auto,bottom 将取 top 值的相反数。
所以,需要将labelHotValue的css加上position:absolute;bottom:0;
#rightContent .labelHotContainer .labelHotValue{border-bottom: 1px solid #A8C082;background: #B9D38F;width: 7px;display: block; position:absolute;bottom: 0;}
- css显示倒置柱状图,认识bottom属性
- css top与bottom属性
- css属性left、right、top、bottom
- css 属性导致 页面文字 横向倒置
- JFreeChart -- 柱状图实例解析 -- 设置显示属性
- JFreeChart -- 柱状图实例解析 -- 设置显示属性
- CSS中边偏移属性top,right,bottom,left
- css中的clip属性rect(top,right,bottom,left);
- CSS属性 display 显示属性
- CSS属性 display 显示属性
- CSS显示属性
- Css中overflow属性的认识
- Css中overflow属性的认识
- CSS高级教程 显示属性
- span border-top,border-bottom属性在IE不显示解决方法,兼容IE ,Chrome,Firefox
- Html+css实现柱状图
- css实现柱状图
- border-bottom-left-radius 属性
- 第一次写,有点像发嘮叨
- 裸机直接安装Ubuntu10.04第四步准备分区无法找到硬盘
- 利用Windows7自带Diskpart命令分区后再安装系统
- 块I/O调度程序
- 杭电OJ题1018 Big Number 解题报告
- css显示倒置柱状图,认识bottom属性
- java异常收集与整理
- MFC 2008,新的用户界面 - 1 - 框架窗口
- 注重纪律——读《浮现式设计》有感
- 数据结构:散列表(哈希表)
- MFC 2008,新的用户界面 - 2 - 应用程序类
- MFC 2008,新的用户界面 - 3 - 菜单栏、工具栏和状态栏
- uva 112 TreeSumming
- 技术人员的未来:做技术还是做管理?