iOS 使用drawRect: 绘制虚线椭圆1:首先如果要使用 drawRect 绘图 要导入CoreGraphics.framework 框架 然后 创建 自定义view, 即是 myView继承 UIView;2: 重写- (void)drawRect:(CGRect)rect方法;3:添加.....
分类:
移动开发 时间:
2014-07-24 17:14:45
阅读次数:
343
`1.CGRectInset````CGRect CGRectInset ( CGRect rect, CGFloat dx, CGFloat dy);````return rect which is smaller or larger than the source with the...
分类:
其他好文 时间:
2014-07-24 05:05:48
阅读次数:
264
extern void DrawWindowFrame(HWND hWnd)//画窗口边框{ RECT rc; HWND DeskHwnd = ::GetDesktopWindow(); //取得桌面句柄 HDC DeskDC = ::GetWindowDC(DeskHwnd); ...
标签最基本的认识就是预格式化文本,被包围在 pre 元素中的文本通常会保留空格和换行符。而文本也会呈现为等宽字体。经常用于在网页中显示计算机源代码。
1、格式化文本举例
.post_code
{
padding:10px;
border:dotted 1px #0000ff;
width:650px;
height:auto;
overflow:scroll;
}
...
分类:
其他好文 时间:
2014-07-21 11:41:56
阅读次数:
248
技术: Unity NGUI Buttion,Scroll View,UI input, F2 改名 Linux Xargs英语: blather cunt droll amputate forlorn don cub
分类:
其他好文 时间:
2014-07-19 14:35:59
阅读次数:
198
cocos2d-x有判断矩阵相交的方法 CCRect::intersectsRect(CCRect& rect)但可惜没有提供求两个相交矩阵的方法,我作了总结,代码如下:
CCRect Tools::intersectsRect(const CCRect &rectA, const CCRect &rectB)
{
CCPoint ori; //左下角顶点 cocos2dx的CC...
分类:
其他好文 时间:
2014-07-19 08:06:10
阅读次数:
266
当页面很短的时候,没有纵向滚动条,点击头部菜单,导航,会有闪动。解决办法:body{overflow-y:scroll;}
分类:
其他好文 时间:
2014-07-19 00:34:35
阅读次数:
338
1、首先创建“返回顶部”元素 2、为窗口的scroll事件绑定处理函数//为窗口的scroll事件绑定处理函数 $(window).scroll(function(){ var min_height = window....
分类:
Web程序 时间:
2014-07-19 00:19:19
阅读次数:
269
1. 滚动范围这个可以理解为一张很大的图片,但是UIScrollView大小有限,如果想看到整张图片,滚动范围就需要和图片一样大小。 // 设置内容的宽高 self.scroll.contentSize = image.size; // 增加滚动范围 左上height\w...
分类:
其他好文 时间:
2014-07-18 00:36:29
阅读次数:
189
table {overflow-y:scroll;max-height:152px; height:auto;}问题:ie下,火狐下能正常出现滚动条谷歌不能出现滚动条解决:第1种:头部 120 ? "120px" : (this.scrollHeight < 40 ? "40px" : "auto"...
分类:
其他好文 时间:
2014-07-17 21:22:51
阅读次数:
164