forked from 0x2620/oxjs
better css for linux
This commit is contained in:
parent
3e1cd3f490
commit
d66c252469
3 changed files with 36 additions and 9 deletions
|
|
@ -87,27 +87,44 @@ $(function() {
|
|||
function loaded() {
|
||||
var $div = $('<div>')
|
||||
.css($.extend(css, {
|
||||
width: '216px',
|
||||
width: (length * 72) + 'px',
|
||||
height: '72px'
|
||||
}));
|
||||
})),
|
||||
i = 0;
|
||||
$.each(src, function(name, src) {
|
||||
$('<a>')
|
||||
.attr({
|
||||
href: userAgents[name],
|
||||
title: name
|
||||
})
|
||||
.css({
|
||||
position: 'absolute',
|
||||
left: (i++ * 72) + 'px',
|
||||
width: '72px',
|
||||
height: '72px',
|
||||
})
|
||||
.append(
|
||||
$('<img>')
|
||||
.attr({
|
||||
src: src
|
||||
})
|
||||
.css({
|
||||
float: 'left',
|
||||
.css($.extend(css, {
|
||||
width: '64px',
|
||||
height: '64px',
|
||||
border: 0,
|
||||
margin: '4px',
|
||||
cursor: 'pointer'
|
||||
}))
|
||||
.mouseenter(function() {
|
||||
$(this).animate({
|
||||
width: '72px',
|
||||
height: '72px',
|
||||
}, 250);
|
||||
})
|
||||
.mouseleave(function() {
|
||||
$(this).animate({
|
||||
width: '64px',
|
||||
height: '64px',
|
||||
}, 250);
|
||||
})
|
||||
)
|
||||
.appendTo($div);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue