码迷,mamicode.com
首页 >  
搜索关键字:position    ( 9475个结果
div table 属性
div:1、基本属性:width, height, left, top, background-color(当设置为transparent时表示透明)2、定位属性:position: absolute/relativeabsolute时,位置固定;relative时,位置会随着内容的实际情况进行浮动...
分类:其他好文   时间:2014-08-07 12:45:40    阅读次数:213
左边导航的制作(置顶)
一:页面代码 登录 0 客服 顶部二:Css样式/*侧边栏(购物车,客服)*/.right_lan{ position:fixed;right:0; _right:-1px; top:0; width:35px; height:100%;_height:400px; backgrou...
分类:其他好文   时间:2014-08-07 12:12:39    阅读次数:228
PyCharm每日技巧-1
To navigate to the declaration of a class, method or variable used somewhere in the code, position the caret at the usage and press Ctrl+B. You may al...
分类:其他好文   时间:2014-08-07 12:12:10    阅读次数:315
background image position问题
在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
div 自动高度
问题: 一个页面分上下二部分,上部分高度是固定不变的,要求下部分高度自动占满屏幕,如何实现?第一感觉是准备用 JS 实现。今天发现一个用 CSS 实现的方法position: fixed;bottom: 10px;overflow: auto;left: 0px;top: 44px;positi.....
分类:其他好文   时间:2014-08-05 18:18:39    阅读次数:162
spinner 设置文本框中的字体颜色
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
解决IE6兼容性问题的十一大技巧
10要点解决IE6兼容性问题1、使用声明你必须经常在html网页头部放置一个声明,推荐使用严格的标准。例如or,forXHTML: 最后你需要是IE6进入兼容模式,这已经足够兼容了。2、使用position:relativeIE6兼容性问题解决方案二:使用position:relative。设置一个...
分类:其他好文   时间:2014-08-05 13:52:09    阅读次数:229
两种解决IE6不支持固定定位的方法
有两种让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
IE 固定定位; li中有块元素的offset问题
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
IE 固定定位; li中有块元素的offset、问题
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!