码迷,mamicode.com
首页 >  
搜索关键字:position    ( 9475个结果
poj 1021
图同构。一个神奇的算法居然0ms过。真是不科学。反例可以构造出来。还是没有针对他的数据。#include #include #include #include using namespace std;struct position{ int x,y; }pos[10010];in...
分类:其他好文   时间:2014-07-22 22:55:55    阅读次数:147
postion:fixed和margin:0 auto的使用
很多同学将顶部菜单固定,使用postion:fixed,然后使用margin:0 auto进行居中,发现margin:0 auto并不起作用。通常,我们要让某元素居中,会这样做:#element{margin:0 auto;} 如果还想让此元素位置固定呢?一般我们会添加position:fixed....
分类:其他好文   时间:2014-07-18 20:26:40    阅读次数:193
CSS 滤镜(IE浏览器专属其他浏览器不支持)
Filter 属性介绍:设置或检索对象所应用的滤镜或滤镜集合。此属性仅作用于有布局的对象,如块对象。内联要素要使用该属性,必须先设定对象的 height 或 width 属性,或者设定 position 属性为 absolute,或者设定 display 属性为 block。请参阅对象的 hasLa...
分类:Web程序   时间:2014-07-18 08:30:30    阅读次数:321
position与anchorPoint
相信初接触到CALayer的人都会遇到以下几个问题:为什么修改anchorPoint会移动layer的位置?CALayer的position点是哪一点呢?anchorPoint与position有什么关系?我也迷惑过,找过网上的教程,大部分都是复制粘贴的,有些是翻译的文章但很有问题,看得似懂非懂,还...
分类:其他好文   时间:2014-07-17 17:38:44    阅读次数:292
webapp设置适应pc和手机的页面宽高以及布局层叠图片文字
html: 我趣旅行网-美剧迷 Pisode css: html,body{ height:100%; margin:0; padding:0; } .wrapper{ position:relative; margin: 0 auto; max-width: 500px; min-...
分类:移动开发   时间:2014-07-17 17:20:56    阅读次数:262
鼠标提上去弹出提示层(定位)
希望的效果如图:网上找了各纯css的做了下修改:代码如下:<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <style> .logo1{ width:150px; height:60px; float:left } a.alt{ position:relative; backgr..
分类:其他好文   时间:2014-07-17 10:55:57    阅读次数:231
css hover对其包含的元素进行样式设置
价格 对a链接包含的span图标进行样式更改。 .icon-down-single-arr{ background-position: -67px -974px; } .icon-down-single-arr-li li:hover .icon-down-single-arr{ background-position: -81px -974px;...
分类:Web程序   时间:2014-07-17 10:32:35    阅读次数:241
ListView的优化
1、复用行布局(用已经完全消失的布局对象去替代即将出现的那个布局对象)在自定义MyAdapter(继承BaseAdapter)适配器时,需重写getVIew(intposition,ViewconvertView,ViewGroupparent)方法,其中的converView方法会保存那个已经完全消失的布局对象,因此我们用convertView来..
分类:其他好文   时间:2014-07-17 09:16:42    阅读次数:248
//重置按钮
//重置 $('.btn-info-reset').click(function restSearchForm() { $('#txt-export-position').val(''); $('#positions-name-tags').html(''); });
分类:其他好文   时间:2014-07-16 16:06:12    阅读次数:177
ByteBuffer的介绍
转摘有一个问题需要明确:为什么要使用bytebuffer,它比byte比起来有什么优点?很简单:为了提高IO的效率。怎样提高的,这个还得google一下。记住几个标志的含义:position:当前指针的位置,也就是接下来要读写的位置。limit:限制,一个缓冲区可读写的范围。capability:容...
分类:其他好文   时间:2014-07-16 16:03:34    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!