$('#container').html(tmp);
$('#container li').height( $('#container li:first-child').width() );
$('#container li').height( $('#container li:first-child').width() );
2017-02-18
我的是這樣的:
li{height:100px;width:25%;float:left;box-sizing:border-box;border:2px solid ;background:white;}
li img{
width:100%;
height:100%;
}
不需要js去計算了。
li{height:100px;width:25%;float:left;box-sizing:border-box;border:2px solid ;background:white;}
li img{
width:100%;
height:100%;
}
不需要js去計算了。
2017-02-18
domImage.removeEventListener('webkitAnimationEnd',false);
2017-02-17
mageObj.onload = function() {
var cvs = $('#cvs_' + this.index)[0];
cvs.width = picWidth;
cvs.height = picWidth;
cvs.getContext('2d').drawImage(this, 0, 0,picWidth,picWidth);
};
應該這樣設置canvas吧
var cvs = $('#cvs_' + this.index)[0];
cvs.width = picWidth;
cvs.height = picWidth;
cvs.getContext('2d').drawImage(this, 0, 0,picWidth,picWidth);
};
應該這樣設置canvas吧
2017-01-23
最新回答 / 瘋狂鎮(zhèn)魂曲
不懂你問的什么意思,如果是網頁前端開發(fā),用sublimetext3就好,安卓開發(fā)用Android studio,iOS開發(fā)用xcode,到網上一搜就有,不用貼鏈接。
2017-01-15
最新回答 / Ckinmind
這里可以定制模塊 [zepto builder](http://github.e-sites.nl/zeptobuilder/),勾選最后的touch模塊就行了
2016-12-29