在CSS中,背景图片的定位方法有3种: 1)关键字:background-position: top left; 2)像素:background-position: 0px 0px; 3)百分比:background-position: 0% 0%; 注意,第一个表示水平,不是top,第二个是...
分类:
其他好文 时间:
2014-08-06 22:51:02
阅读次数:
253
问题: 一个页面分上下二部分,上部分高度是固定不变的,要求下部分高度自动占满屏幕,如何实现?第一感觉是准备用 JS 实现。今天发现一个用 CSS 实现的方法position: fixed;bottom: 10px;overflow: auto;left: 0px;top: 44px;positi.....
分类:
其他好文 时间:
2014-08-05 18:18:39
阅读次数:
162
onItemSelected(AdapterView parent, View v, int position, long id) { TextView v1 = (TextView)v; v1.setTextColor(Color.WHITE); //可以随意设置自己要的颜色值 }本文转自:ht....
分类:
其他好文 时间:
2014-08-05 15:30:59
阅读次数:
233
10要点解决IE6兼容性问题1、使用声明你必须经常在html网页头部放置一个声明,推荐使用严格的标准。例如or,forXHTML: 最后你需要是IE6进入兼容模式,这已经足够兼容了。2、使用position:relativeIE6兼容性问题解决方案二:使用position:relative。设置一个...
分类:
其他好文 时间:
2014-08-05 13:52:09
阅读次数:
229
有两种让IE6支持position:fixed1.用CSS执行表达式*{margin:0;padding:0;}* html,* html body{ background-image:url(about:blank); background-attachment:fixed;}* html ......
分类:
其他好文 时间:
2014-08-05 13:46:49
阅读次数:
260
body{ background-image:url(about:blank); background-attachment:fixed; /*ie 防抖动*/}.fix_to_top { _position:absolute; _top:expression(eval(document...
分类:
其他好文 时间:
2014-08-05 09:28:58
阅读次数:
448
body{ background-image:url(about:blank); background-attachment:fixed; /*ie 防抖动*/}.fix_to_top { _position:absolute; _top:expression(eval(document.docu....
分类:
其他好文 时间:
2014-08-05 09:27:58
阅读次数:
243
一、DIV布局按照定位的方法分为:浮动方法(float),坐标定位方法(position),还有就是两者相结合的方法。 二、DIV布局按照定义单位的不同可分为:固定宽度布局、流体布局、弹性布局和混合布局。 固定宽度布局是将宽度用像素单位定义,它的宽度总保持不变,也被成为“冰布局”。 它的缺点是...
分类:
其他好文 时间:
2014-08-05 00:23:38
阅读次数:
225
_.find(document.styleSheets[4].cssRules,function(cssRule){
if(cssRule.selectorText && cssRule.selectorText.indexOf(".navbar-fixed-top2")>-1){
cssRule.style.position="";
cssRule.style.top = ...
分类:
Web程序 时间:
2014-08-04 21:46:58
阅读次数:
363
CSS 定位属性CSS 定位属性允许你对元素进行定位。属性描述position把元素放置到一个静态的、相对的、绝对的、或固定的位置中。top定义了一个定位元素的上外边距边界与其包含块上边界之间的偏移。right定义了定位元素右外边距边界与其包含块右边界之间的偏移。bottom定义了定位元素下外边距边...
分类:
Web程序 时间:
2014-08-04 21:27:37
阅读次数:
470