CSS commands are usually grouped in the curly braces to make a set of rules. Following are the various ways available to attach these set of rules with HTML code.
Selector (in simple words) means how you name these set of rules.
1 CLASS SelectORS
代码:
图像的分片合拢效果
var imgwidth=140
var imgheight=105
var imgurl="images/flag.gif"
var marginright
var imgslices=20
var width_slice=Math.floor(imgwidth/imgslices)
var cliptop=0
var clipbottom=imgheight
var clipleft=0
var cl