控制文本的移动是控制台窗口界面编程的一个很重要的功能,有了这个功能我们可以实现界面的滚动。下面我们介绍一个控制文本移动的函数,如下:BOOLScrollConsoleScreenBuffer(//文本移动函数HANDLEhConsoleOutput,//句柄constSMALL_RECT*lpScr...
分类:
编程语言 时间:
2014-06-28 15:48:36
阅读次数:
336
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
$(function () { $(window).scroll(function (){ if ($(window).scrollTop() >= 150){ //加入fixedNavCSS样式 $(".Dp-Navbar").addClass("fixedNav"); } else{//去...
分类:
Web程序 时间:
2014-06-21 06:39:29
阅读次数:
330
[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
原理是根据屏幕上的坐标找到需要做 lazyload 的区域1,先监听 scroll 事件var threshold = 30 ,scrolling_ltwindow.addEventListener('scroll', function(){ scrolling_lt = new Dat...
分类:
其他好文 时间:
2014-06-20 19:08:18
阅读次数:
178
实例设置 overflow 属性:div { width:150px; height:150px; overflow:scroll; }浏览器支持所有主流浏览器都支持 overflow 属性。注释:任何的版本的 Internet Explorer (包括 IE8)都不支持属性值 "inhe...
分类:
Web程序 时间:
2014-06-18 20:15:37
阅读次数:
279
/*! 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
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
1.写一个类继承TextView[java]view plaincopypackagecom.example.tt;importandroid.content.Context;importandroid.graphics.Rect;importandroid.util.AttributeSet;im...
分类:
其他好文 时间:
2014-06-17 15:43:33
阅读次数:
264
先解释下,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