码迷,mamicode.com
首页 >  
搜索关键字:scroll rect    ( 7740个结果
C语言控制台窗口图形界面编程(五).
控制文本的移动是控制台窗口界面编程的一个很重要的功能,有了这个功能我们可以实现界面的滚动。下面我们介绍一个控制文本移动的函数,如下:BOOLScrollConsoleScreenBuffer(//文本移动函数HANDLEhConsoleOutput,//句柄constSMALL_RECT*lpScr...
分类:编程语言   时间:2014-06-28 15:48:36    阅读次数:336
C语言——结构体数组的使用案例(如何判断两个矩形是否相交,其中一个是否包含在另外一个里面,点是否在矩形中)
Rect.hstruct CPoint { float x; float y;};typedef struct CPoint CPoint;struct CSize { float width; float height;};typedef struct CSize CSiz...
分类:编程语言   时间:2014-06-28 15:10:15    阅读次数:381
Jquery中,关于固定头部菜单条代码(摘)
$(function () { $(window).scroll(function (){ if ($(window).scrollTop() >= 150){ //加入fixedNavCSS样式 $(".Dp-Navbar").addClass("fixedNav"); } else{//去...
分类:Web程序   时间:2014-06-21 06:39:29    阅读次数:330
unity3d屏幕截图功能
[java]view plaincopyprint?functionOnGUI(){if(GUI.Button(Rect(Screen.width*0.5-50,Screen.height*0.5-50,100,100),"screen")){Application.CaptureScreensho...
分类:其他好文   时间:2014-06-20 22:47:34    阅读次数:378
WAP 图片 lazyload
原理是根据屏幕上的坐标找到需要做 lazyload 的区域1,先监听 scroll 事件var threshold = 30 ,scrolling_ltwindow.addEventListener('scroll', function(){ scrolling_lt = new Dat...
分类:其他好文   时间:2014-06-20 19:08:18    阅读次数:178
CSS overflow 属性
实例设置 overflow 属性:div { width:150px; height:150px; overflow:scroll; }浏览器支持所有主流浏览器都支持 overflow 属性。注释:任何的版本的 Internet Explorer (包括 IE8)都不支持属性值 "inhe...
分类:Web程序   时间:2014-06-18 20:15:37    阅读次数:279
[snippet] show dialog
/*! Copyright Cdialog* version 1.0* liscense MIT*/var Cdialog = { showMask: true, //show mask isScroll:false, //auto detect scroll zIndex: 1000...
分类:其他好文   时间:2014-06-18 15:06:18    阅读次数:329
jquery判断是否出现滚动条
1 $(document).ready(function(){ 2 var winH = $(window).height(); //页面可视区域高度 3 $(window).scroll(function () { 4 var pageH = $(docum...
分类:Web程序   时间:2014-06-18 12:55:00    阅读次数:179
TextView不用获取焦点也能实现跑马灯
1.写一个类继承TextView[java]view plaincopypackagecom.example.tt;importandroid.content.Context;importandroid.graphics.Rect;importandroid.util.AttributeSet;im...
分类:其他好文   时间:2014-06-17 15:43:33    阅读次数:264
【IE兼容性】background:transparent IE中Bug,不能选中input输入框,出现这个问题主要是IE8
先解释下,background:transparent,默认在IE上会被解析成 background: none transparent scroll repeat 0% 0%  transparent表示透明无颜色  none 表示没有设置背景图片 repeat 表示图片重复 scroll 表示背景图片随浏览器下拉而滚动 0%水平位置在x0 0%垂直位置在y0...
分类:其他好文   时间:2014-06-16 22:29:27    阅读次数:298
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!