Last active
October 20, 2016 06:55
-
-
Save tobychung/113de15c4b173416c626a5fc365a1c94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//--------- 只設定一個css ---------// | |
$( "body" ).on( "click",function() { | |
$( this ).css("width", "100px" ); | |
}); | |
//--------- 設定兩個以上的css (用,隔開每個style) ---------// | |
$( "body" ).on( "click",function() { | |
$( this ).css({ width:"100px", height:"30px", backgroundColor:"#999" }); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment