WordPress 的 rich text采用js,先让selenium切换到iframe中driver.switchTo().frame("content_ifr");然后执行JSWebElement editor = driver.findElement(By.tagName("body"));...
分类:
其他好文 时间:
2014-08-31 00:25:30
阅读次数:
374
Android 平台提供了两类动画。 一类是Tween动画,就是对场景里的对象不断的进行图像变化来产生动画效果(旋转、平移、放缩和渐变)。第二类就是 Frame动画,即顺序的播放事先做好的图像,与gif图片原理相似。以下就讲一下Tweene Animations。主要类:Animation 动...
分类:
移动开发 时间:
2014-08-30 13:50:09
阅读次数:
435
08/30/14 11:19:37,742 INFO =============cdnadapter is starting...... ! ============= pid = 6199 [./src/frame.cpp:469]
08/30/14 11:19:37,742 TRACE Enter InitThreadPool() [./src/frame.cpp:196]
08/30/14 ...
分类:
其他好文 时间:
2014-08-30 12:42:19
阅读次数:
532
08/30/14 11:19:25,307 INFO
=============cl is starting...... ! ============= pid = 5735
[./src/frame.cpp:469]
08/30/14 11:19:25,307 TRACE
Enter InitThreadPool() [./src/frame.cpp:196]
08/30/14 11:...
分类:
其他好文 时间:
2014-08-30 12:42:09
阅读次数:
318
MyBean是轻量级的、绿色的框架,不需要安装任何的组件和携带任何的其他文件,前期步骤已经相当精简了,仔细阅读完下面简单的五个步骤,就可以编写基于MyBean的插件:1.加入Delphi的搜索路径source\frame-common,source\frame-core2.主控台进行初始化exe工程...
分类:
其他好文 时间:
2014-08-30 12:36:19
阅读次数:
245
前提,当前frame无名或动态生成的; var url = eval($("#ifr1").attr("name")+".location.href;"); console.info(url);
分类:
Web程序 时间:
2014-08-29 12:52:47
阅读次数:
171
// UIStepper的常用方法
UIStepper *oneStepper = [[UIStepper
alloc] init];
oneStepper.frame =
CGRectMake(20, 20,
20, 20);
oneStepper.backgroundColor = [UIColor
blueColor]; // 设置背景色
...
分类:
移动开发 时间:
2014-08-29 11:08:27
阅读次数:
223
//代码截屏
//(1)设置要截屏的图片大小
UIGraphicsBeginImageContext(self.view.frame.size);
//(2)对哪个视图截图固定大小得图片
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
//(3)获取截图的图片对象
UI...
分类:
其他好文 时间:
2014-08-29 11:08:07
阅读次数:
145
UIButton中有个p_w_picpathView和titleLabel,要设置位置,可用一个急于UIButton的类里重写-(CGRect)titleRectForContentRect:(CGRect)contentRect;//调整UIButton内部的titleLable的frame或-(CGRect)p_w_picpathRectForContentRect:(CGRect)contentRect;//调整UIButton内部的U..
分类:
其他好文 时间:
2014-08-29 02:56:37
阅读次数:
174
opener即谁打开我的,比如A页面利用window.open弹出了B页面窗口,那么A页面所在窗口就是B页面的opener,在B页面通过opener对象可以访问A页面。parent表示父窗口,比如一个A页面利用iframe或frame调用B页面,那么A页面所在窗口就是B页面的parent。在JS中,window.opener只是对弹出窗口的母窗口的一个引用。比如:a.html中,通过点击按钮等方式window.open出一个新的窗口b.html。那么在b.html中,就可以通过window.opener(省...
分类:
Web程序 时间:
2014-08-28 16:57:20
阅读次数:
184