码迷,mamicode.com
首页 >  
搜索关键字:relative    ( 3126个结果
文字链接平滑左右移动的效果
鼠标移动到文字连接时会出现向右平滑移动。 例如: html代码 : http://xiong.chexian666.com/ test link move css代码: .test a{position:relative;background-color:#446CB3; color:#...
分类:移动开发   时间:2014-12-03 21:05:06    阅读次数:236
css实现鼠标移入滑动显示功能
鼠标移上去,元素位置移动,显示隐藏功能效果。(推荐在火狐或谷歌中观看,会有有动画效果)效果如图:css: .box { width: 200px; height: 300px; position: relative; margin: 200px auto 0 auto; } .box:hov...
分类:Web程序   时间:2014-12-03 14:14:14    阅读次数:413
css实现图片裁切效果
原始图片:效果如图:css: .box { width: 150px; padding: 3px; border: 1px solid #e5e5e5; } .img { width: 150px; height: 200px; position: relative; backgrou...
分类:Web程序   时间:2014-12-03 14:06:01    阅读次数:335
关于position定位及z-index的理解
position属性规定元素的定位类型,顾名思义,它是用来描述元素使用什么方式,如何来定义位置的属性。position的值有 5个:absolute(绝对定位),fixed(固定定位),relative(相对定位),static(默认值),inherit(继承)。我们所 要理解的只是前4种,对于in...
分类:其他好文   时间:2014-12-03 12:24:09    阅读次数:273
css定位模拟投影,高度可随内容变化
效果如图:css:* { padding: 0; margin: 0; list-style-type: none;}body { padding: 20px 0 0 20px;} #shadow { background: #E8E8E8; position: relative; width: 2...
分类:Web程序   时间:2014-12-03 12:11:44    阅读次数:139
css3实现圆点
效果:CSS:.dot{width:14px;height:14px;font:12px/18pxArial;border-radius:7px;display:inline-block;vertical-align:middle;position:relative;box-shadow:0px1p...
分类:Web程序   时间:2014-12-03 12:08:22    阅读次数:314
ul宽度不固定(或li数量不固定) 居中显示
ul宽度不固定html:列表一列表二列表三css:#box{position:relative;width:500px;background-color:#eee;overflow:hidden;}#box.middle{float:left;position:relative;left:50%;m...
分类:其他好文   时间:2014-12-03 11:53:16    阅读次数:199
[leetcode]Partition List
问题描述: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the original relative order of the nodes in...
分类:其他好文   时间:2014-12-03 00:27:55    阅读次数:141
2013计算机视觉代码合集三
Attributes and Semantic FeaturesRelative Attributes– Modified implementation of RankSVM to train Relative Attributes (ICCV 2011).Object Bank– Implemen...
分类:其他好文   时间:2014-12-02 22:08:02    阅读次数:320
小tip:【css】position移动位置
relative和absolute的一丢丢。position:relative:元素框偏移某个距离。元素仍保持其未定位前的形状,它原本所占的空间仍保留。position:absolute :元素框从文档流完全删除,并相对于其包含块定位。包含块可能是文档中的另一个元素或者是初始包含块。元素原先在正常文...
分类:移动开发   时间:2014-12-01 22:25:04    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!