显示与隐藏
show(spped,[callback])与hide(spped,[callback])
speed可选填slow、normal、fast,对应的速度分别为600ms、400ms、200ms。也可以直接填毫秒数,callback函数为回调函数,动作完成后调用此函数
$("img").show(3000,function(){
$(this).css("border"...
分类:
Web程序 时间:
2015-01-08 11:26:18
阅读次数:
405
效果图: 1 ui->tableWidget->setColumnCount(3); 2 ui->tableWidget->verticalHeader()->hide(); 3 ui->tableWidget->horizontalHeader()->setSectionR...
分类:
其他好文 时间:
2015-01-07 16:37:59
阅读次数:
329
$('#btFrame').hide();$('#btFrame').show();上面脚本在IE10一下功能失效,解决方法如下:方法一:$('#btFrame').hide(0);$('#btFrame').show(0);方法二:$('#btFrame').css('visibility','h...
分类:
其他好文 时间:
2015-01-07 12:22:22
阅读次数:
218
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
Hide Tags
Math String
...
分类:
其他好文 时间:
2015-01-06 18:06:01
阅读次数:
164
在Angular的原生指令中有这几个指令用来控制元素的展示与否,ng-show/ng-hide/ng-if和ng-switch。在angular性能优化中,我们也常常会用到它。
分类:
Web程序 时间:
2015-01-05 21:40:01
阅读次数:
1527
jQuery任何动画都能指定3种速度参数"slow","normal","fast"(时间分别是0.6s 0.4s 0.2s),使用该3参数时必须加引号。另外还可以使用数字作为时间参数,例如show(1000)。1、show()和hide()方法 show()方法 最后将元素的display属性设....
分类:
Web程序 时间:
2015-01-04 13:21:03
阅读次数:
136
function doit(){ var sel_val=$("#type").val(); if (sel_val=='') { $("#bigClassId1").hide(); $("#bigClassId2").hide(); } if (...
分类:
Web程序 时间:
2015-01-03 10:35:39
阅读次数:
199
键盘的展开和收起主要使用到类InputMethodManager:http://developer.android.com/reference/android/view/inputmethod/InputMethodManager.html其大致方法如下:1 public void hide_key...
分类:
移动开发 时间:
2015-01-02 19:53:30
阅读次数:
191
动画效果
基本动画效果
隐藏匹配元素
$("img").hide(300);//将img隐藏300ms
显示匹配元素
$("img").show(300);//在300ms内显示img
元素状态切换
$(document).ready(function(){
$("input[type='button']").click(function()
{
$("div...
分类:
Web程序 时间:
2015-01-02 11:02:44
阅读次数:
195
不说废话了,很简单,直接上代码。
无标题文档
$(document).ready(function(){
$("#btn").unbind().click(function(){
$("#first").hide();
$("#sec").css("left","-200px").animate({"left":"0px"},500).show();
...
分类:
Web程序 时间:
2015-01-01 19:48:18
阅读次数:
194