居中显示用到了moveTO()方法;
关闭弹出窗时刷新父窗口用到了window.opener方法;
父窗口代码如下:
function cc() {
var hdc = window.open('ChildWin.aspx', '弹出框', 'width=900,height=450,top=300,left=300')...
分类:
编程语言 时间:
2014-12-23 15:37:54
阅读次数:
127
Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST.SOLUTION 1:...
分类:
其他好文 时间:
2014-12-23 13:52:56
阅读次数:
200
$(document).ready(init);function init() { var h = $(window).height(); var w = $(window).width(); /* *@param 传相应Id *@description 显示相应ID内...
分类:
Web程序 时间:
2014-12-23 12:18:41
阅读次数:
133
1, 最基本的弹出窗口代码
window.open('page.html');
2, 经过设置后的弹出窗口
window.open('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, locat...
1.input在所有浏览器以及所有的版本中,都是定义了高度,然后再定义padding或者border值,这时候都会撑开,高度是本身的高度在padding值和border值
2.select在goole浏览器中以及ie8以上浏览器中,定义的height值包括padding值和border值
3.select在ie8及ie8一下浏览其中,select和input一样,都不包括padding和bor...
分类:
Web程序 时间:
2014-12-23 10:26:19
阅读次数:
171
一、创建元素1、jQuery内部使用document.createElement创建元素实例://jQuery 源代码方法一:$("").css({ 'width': '100px', 'height': '50px', 'padding': '10px', 'border'...
分类:
Web程序 时间:
2014-12-23 00:04:41
阅读次数:
268
(1)只设置阴影模糊半径和阴影颜色只设置阴影模糊半径和阴影颜色。例如:.box-shadow{ width: 200px; height: 100px; border-radius: 10px; border: 1px solid #ccc; mar...
分类:
其他好文 时间:
2014-12-22 17:38:28
阅读次数:
111
Edit实例变量与局部变量之间的区别Java.Variable1.实例变量是声明在类内而不是方法中。class Horse { private double *height* = 15.2; private String *breed*;}2.局部变量是声明在方法中的。class Add...
分类:
其他好文 时间:
2014-12-22 17:31:38
阅读次数:
136
(1)
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="ma...
分类:
移动开发 时间:
2014-12-22 16:23:31
阅读次数:
192
editText=(EditText)findViewById(R.id.myEditText); // editText.setHeight(10); //不生效 editText.getLayoutParams().height = 100; onCreate()里...
分类:
其他好文 时间:
2014-12-22 12:55:19
阅读次数:
161