CSS从大图片上截取小图标
一张图片,用CSS分割成多个小图标。
css样式:
- .icon{ background:url(../images/tabicons.png) no-repeat;width:18px; line-height:18px; display:inline-block;}
- .tu0101{background-position:-0px -0px;}
- .tu0201{background-position:-20px -0px;}
- .tu0301{background-position:-40px -0px;}
- .tu0401{background-position:-60px -0px;}
- .tu0501{background-position:-80px -0px;}
- .tu0601{background-position:-100px -0px;}
- .tu0701{background-position:-120px -0px;}
- .tu0801{background-position:-140px -0px;}
- .tu0901{background-position:-160px -0px;}
- .tu1001{background-position:-180px -0px;}
- .tu1101{background-position:-200px -0px;}
- .tu1201{background-position:-220px -0px;}
- .tu1301{background-position:-240px -0px;}
- .tu1401{background-position:-260px -0px;}
- .tu1501{background-position:-280px -0px;}
- .tu1601{background-position:-300px -0px;}
- .tu1701{background-position:-320px -0px;}
- .tu1801{background-position:-340px -0px;}
- .tu1901{background-position:-360px -0px;}
- .tu2001{background-position:-380px -0px;}
- .tu0102{background-position:-0px -20px;}
- .tu0202{background-position:-20px -20px;}
- .tu0302{background-position:-40px -20px;}
- .tu0402{background-position:-60px -20px;}
- .tu0502{background-position:-80px -20px;}
- .tu0602{background-position:-100px -20px;}
- .tu0702{background-position:-120px -20px;}
- .tu0802{background-position:-140px -20px;}
- .tu0902{background-position:-160px -20px;}
- .tu1002{background-position:-180px -20px;}
- .tu1102{background-position:-200px -20px;}
- .tu1202{background-position:-220px -20px;}
- .tu1302{background-position:-240px -20px;}
- .tu1402{background-position:-260px -20px;}
- .tu1502{background-position:-280px -20px;}
- .tu1602{background-position:-300px -20px;}
- .tu1702{background-position:-320px -20px;}
- .tu1802{background-position:-340px -20px;}
- .tu1902{background-position:-360px -20px;}
- .tu2002{background-position:-380px -20px;}
- .tu0103{background-position:-0px -40px;}
- .tu0203{background-position:-20px -40px;}
- .tu0303{background-position:-40px -40px;}
- .tu0403{background-position:-60px -40px;}
- .tu0503{background-position:-80px -40px;}
- .tu0603{background-position:-100px -40px;}
- .tu0703{background-position:-120px -40px;}
- .tu0803{background-position:-140px -40px;}
- .tu0903{background-position:-160px -40px;}
- .tu1003{background-position:-180px -40px;}
- .tu1103{background-position:-200px -40px;}
- .tu1203{background-position:-220px -40px;}
- .tu1303{background-position:-240px -40px;}
- .tu1403{background-position:-260px -40px;}
- .tu1503{background-position:-280px -40px;}
- .tu1603{background-position:-300px -40px;}
- .tu1703{background-position:-320px -40px;}
- .tu1803{background-position:-340px -40px;}
- .tu1903{background-position:-360px -40px;}
- .tu2003{background-position:-380px -40px;}
- .tu0104{background-position:-0px -60px;}
- .tu0204{background-position:-20px -60px;}
- .tu0304{background-position:-40px -60px;}
- .tu0404{background-position:-60px -60px;}
- .tu0504{background-position:-80px -60px;}
- .tu0604{background-position:-100px -60px;}
- .tu0704{background-position:-120px -60px;}
- .tu0804{background-position:-140px -60px;}
- .tu0904{background-position:-160px -60px;}
- .tu1004{background-position:-180px -60px;}
- .tu1104{background-position:-200px -60px;}
- .tu1204{background-position:-220px -60px;}
- .tu1304{background-position:-240px -60px;}
- .tu1404{background-position:-260px -60px;}
- .tu1504{background-position:-280px -60px;}
- .tu1604{background-position:-300px -60px;}
- .tu1704{background-position:-320px -60px;}
- .tu1804{background-position:-340px -60px;}
- .tu1904{background-position:-360px -60px;}
- .tu2004{background-position:-380px -60px;}
- .tu0105{background-position:-0px -80px;}
- .tu0205{background-position:-20px -80px;}
- .tu0305{background-position:-40px -80px;}
- .tu0405{background-position:-60px -80px;}
- .tu0505{background-position:-80px -80px;}
- .tu0605{background-position:-100px -80px;}
- .tu0705{background-position:-120px -80px;}
- .tu0805{background-position:-140px -80px;}
- .tu0905{background-position:-160px -80px;}
- .tu1005{background-position:-180px -80px;}
- .tu1105{background-position:-200px -80px;}
- .tu1205{background-position:-220px -80px;}
- .tu1305{background-position:-240px -80px;}
- .tu1405{background-position:-260px -80px;}
- .tu1505{background-position:-280px -80px;}
- .tu1605{background-position:-300px -80px;}
- .tu1705{background-position:-320px -80px;}
- .tu1805{background-position:-340px -80px;}
- .tu1905{background-position:-360px -80px;}
- .tu2005{background-position:-380px -80px;}
- .tu0106{background-position:-0px -100px;}
- .tu0206{background-position:-20px -100px;}
- .tu0306{background-position:-40px -100px;}
- .tu0406{background-position:-60px -100px;}
- .tu0506{background-position:-80px -100px;}
- .tu0606{background-position:-100px -100px;}
- .tu0706{background-position:-120px -100px;}
- .tu0806{background-position:-140px -100px;}
- .tu0906{background-position:-160px -100px;}
- .tu1006{background-position:-180px -100px;}
- .tu1106{background-position:-200px -100px;}
- .tu1206{background-position:-220px -100px;}
- .tu1306{background-position:-240px -100px;}
- .tu1406{background-position:-260px -100px;}
- .tu1506{background-position:-280px -100px;}
- .tu1606{background-position:-300px -100px;}
- .tu1706{background-position:-320px -100px;}
- .tu1806{background-position:-340px -100px;}
- .tu1906{background-position:-360px -100px;}
- .tu2006{background-position:-380px -100px;}
- .tu0107{background-position:-0px -120px;}
- .tu0207{background-position:-20px -120px;}
- .tu0307{background-position:-40px -120px;}
- .tu0407{background-position:-60px -120px;}
- .tu0507{background-position:-80px -120px;}
- .tu0607{background-position:-100px -120px;}
- .tu0707{background-position:-120px -120px;}
- .tu0807{background-position:-140px -120px;}
- .tu0907{background-position:-160px -120px;}
- .tu1007{background-position:-180px -120px;}
- .tu1107{background-position:-200px -120px;}
- .tu1207{background-position:-220px -120px;}
- .tu1307{background-position:-240px -120px;}
- .tu1407{background-position:-260px -120px;}
- .tu1507{background-position:-280px -120px;}
- .tu1607{background-position:-300px -120px;}
- .tu1707{background-position:-320px -120px;}
- .tu1807{background-position:-340px -120px;}
- .tu1907{background-position:-360px -120px;}
- .tu2007{background-position:-380px -120px;}
- .tu0108{background-position:-0px -140px;}
- .tu0208{background-position:-20px -140px;}
- .tu0308{background-position:-40px -140px;}
- .tu0408{background-position:-60px -140px;}
- .tu0508{background-position:-80px -140px;}
- .tu0608{background-position:-100px -140px;}
- .tu0708{background-position:-120px -140px;}
- .tu0808{background-position:-140px -140px;}
- .tu0908{background-position:-160px -140px;}
- .tu1008{background-position:-180px -140px;}
- .tu1108{background-position:-200px -140px;}
- .tu1208{background-position:-220px -140px;}
- .tu1308{background-position:-240px -140px;}
- .tu1408{background-position:-260px -140px;}
- .tu1508{background-position:-280px -140px;}
- .tu1608{background-position:-300px -140px;}
- .tu1708{background-position:-320px -140px;}
- .tu1808{background-position:-340px -140px;}
- .tu1908{background-position:-360px -140px;}
- .tu2008{background-position:-380px -140px;}
- .tu0109{background-position:-0px -160px;}
- .tu0209{background-position:-20px -160px;}
- .tu0309{background-position:-40px -160px;}
- .tu0409{background-position:-60px -160px;}
- .tu0509{background-position:-80px -160px;}
- .tu0609{background-position:-100px -160px;}
- .tu0709{background-position:-120px -160px;}
- .tu0809{background-position:-140px -160px;}
- .tu0909{background-position:-160px -160px;}
- .tu1009{background-position:-180px -160px;}
- .tu1109{background-position:-200px -160px;}
- .tu1209{background-position:-220px -160px;}
- .tu1309{background-position:-240px -160px;}
- .tu1409{background-position:-260px -160px;}
- .tu1509{background-position:-280px -160px;}
- .tu1609{background-position:-300px -160px;}
- .tu1709{background-position:-320px -160px;}
- .tu1809{background-position:-340px -160px;}
- .tu1909{background-position:-360px -160px;}
- .tu2009{background-position:-380px -160px;}
- .tu0110{background-position:-0px -180px;}
- .tu0210{background-position:-20px -180px;}
- .tu0310{background-position:-40px -180px;}
- .tu0410{background-position:-60px -180px;}
- .tu0510{background-position:-80px -180px;}
- .tu0610{background-position:-100px -180px;}
- .tu0710{background-position:-120px -180px;}
- .tu0810{background-position:-140px -180px;}
- .tu0910{background-position:-160px -180px;}
- .tu1010{background-position:-180px -180px;}
- .tu1110{background-position:-200px -180px;}
- .tu1210{background-position:-220px -180px;}
- .tu1310{background-position:-240px -180px;}
- .tu1410{background-position:-260px -180px;}
- .tu1510{background-position:-280px -180px;}
- .tu1610{background-position:-300px -180px;}
- .tu1710{background-position:-320px -180px;}
- .tu1810{background-position:-340px -180px;}
- .tu1910{background-position:-360px -180px;}
- .tu2010{background-position:-380px -180px;}
- .tu0111{background-position:-0px -200px;}
- .tu0211{background-position:-20px -200px;}
- .tu0311{background-position:-40px -200px;}
- .tu0411{background-position:-60px -200px;}
- .tu0511{background-position:-80px -200px;}
- .tu0611{background-position:-100px -200px;}
- .tu0711{background-position:-120px -200px;}
- .tu0811{background-position:-140px -200px;}
- .tu0911{background-position:-160px -200px;}
- .tu1011{background-position:-180px -200px;}
- .tu1111{background-position:-200px -200px;}
- .tu1211{background-position:-220px -200px;}
- .tu1311{background-position:-240px -200px;}
- .tu1411{background-position:-260px -200px;}
- .tu1511{background-position:-280px -200px;}
- .tu1611{background-position:-300px -200px;}
- .tu1711{background-position:-320px -200px;}
- .tu1811{background-position:-340px -200px;}
- .tu1911{background-position:-360px -200px;}
- .tu2011{background-position:-380px -200px;}
- .tu0112{background-position:-0px -220px;}
- .tu0212{background-position:-20px -220px;}
- .tu0312{background-position:-40px -220px;}
- .tu0412{background-position:-60px -220px;}
- .tu0512{background-position:-80px -220px;}
- .tu0612{background-position:-100px -220px;}
- .tu0712{background-position:-120px -220px;}
- .tu0812{background-position:-140px -220px;}
- .tu0912{background-position:-160px -220px;}
- .tu1012{background-position:-180px -220px;}
- .tu1112{background-position:-200px -220px;}
- .tu1212{background-position:-220px -220px;}
- .tu1312{background-position:-240px -220px;}
- .tu1412{background-position:-260px -220px;}
- .tu1512{background-position:-280px -220px;}
- .tu1612{background-position:-300px -220px;}
- .tu1712{background-position:-320px -220px;}
- .tu1812{background-position:-340px -220px;}
- .tu1912{background-position:-360px -220px;}
- .tu2012{background-position:-380px -220px;}
- .tu0113{background-position:-0px -240px;}
- .tu0213{background-position:-20px -240px;}
- .tu0313{background-position:-40px -240px;}
- .tu0413{background-position:-60px -240px;}
- .tu0513{background-position:-80px -240px;}
- .tu0613{background-position:-100px -240px;}
- .tu0713{background-position:-120px -240px;}
- .tu0813{background-position:-140px -240px;}
- .tu0913{background-position:-160px -240px;}
- .tu1013{background-position:-180px -240px;}
- .tu1113{background-position:-200px -240px;}
- .tu1213{background-position:-220px -240px;}
- .tu1313{background-position:-240px -240px;}
- .tu1413{background-position:-260px -240px;}
- .tu1513{background-position:-280px -240px;}
- .tu1613{background-position:-300px -240px;}
- .tu1713{background-position:-320px -240px;}
- .tu1813{background-position:-340px -240px;}
- .tu1913{background-position:-360px -240px;}
- .tu2013{background-position:-380px -240px;}
- .tu0114{background-position:-0px -260px;}
- .tu0214{background-position:-20px -260px;}
- .tu0314{background-position:-40px -260px;}
- .tu0414{background-position:-60px -260px;}
- .tu0514{background-position:-80px -260px;}
- .tu0614{background-position:-100px -260px;}
- .tu0714{background-position:-120px -260px;}
- .tu0814{background-position:-140px -260px;}
- .tu0914{background-position:-160px -260px;}
- .tu1014{background-position:-180px -260px;}
- .tu1114{background-position:-200px -260px;}
- .tu1214{background-position:-220px -260px;}
- .tu1314{background-position:-240px -260px;}
- .tu1414{background-position:-260px -260px;}
- .tu1514{background-position:-280px -260px;}
- .tu1614{background-position:-300px -260px;}
- .tu1714{background-position:-320px -260px;}
- .tu1814{background-position:-340px -260px;}
- .tu1914{background-position:-360px -260px;}
- .tu2014{background-position:-380px -260px;}
- .tu0115{background-position:-0px -280px;}
- .tu0215{background-position:-20px -280px;}
- .tu0315{background-position:-40px -280px;}
- .tu0415{background-position:-60px -280px;}
- .tu0515{background-position:-80px -280px;}
- .tu0615{background-position:-100px -280px;}
- .tu0715{background-position:-120px -280px;}
- .tu0815{background-position:-140px -280px;}
- .tu0915{background-position:-160px -280px;}
- .tu1015{background-position:-180px -280px;}
- .tu1115{background-position:-200px -280px;}
- .tu1215{background-position:-220px -280px;}
- .tu1315{background-position:-240px -280px;}
- .tu1415{background-position:-260px -280px;}
- .tu1515{background-position:-280px -280px;}
- .tu1615{background-position:-300px -280px;}
- .tu1715{background-position:-320px -280px;}
- .tu1815{background-position:-340px -280px;}
- .tu1915{background-position:-360px -280px;}
- .tu2015{background-position:-380px -280px;}
- .tu0116{background-position:-0px -300px;}
- .tu0216{background-position:-20px -300px;}
- .tu0316{background-position:-40px -300px;}
- .tu0416{background-position:-60px -300px;}
- .tu0516{background-position:-80px -300px;}
- .tu0616{background-position:-100px -300px;}
- .tu0716{background-position:-120px -300px;}
- .tu0816{background-position:-140px -300px;}
- .tu0916{background-position:-160px -300px;}
- .tu1016{background-position:-180px -300px;}
- .tu1116{background-position:-200px -300px;}
- .tu1216{background-position:-220px -300px;}
- .tu1316{background-position:-240px -300px;}
- .tu1416{background-position:-260px -300px;}
- .tu1516{background-position:-280px -300px;}
- .tu1616{background-position:-300px -300px;}
- .tu1716{background-position:-320px -300px;}
- .tu1816{background-position:-340px -300px;}
- .tu1916{background-position:-360px -300px;}
- .tu2016{background-position:-380px -300px;}
- .tu0117{background-position:-0px -320px;}
- .tu0217{background-position:-20px -320px;}
- .tu0317{background-position:-40px -320px;}
- .tu0417{background-position:-60px -320px;}
- .tu0517{background-position:-80px -320px;}
- .tu0617{background-position:-100px -320px;}
- .tu0717{background-position:-120px -320px;}
- .tu0817{background-position:-140px -320px;}
- .tu0917{background-position:-160px -320px;}
- .tu1017{background-position:-180px -320px;}
- .tu1117{background-position:-200px -320px;}
- .tu1217{background-position:-220px -320px;}
- .tu1317{background-position:-240px -320px;}
- .tu1417{background-position:-260px -320px;}
- .tu1517{background-position:-280px -320px;}
- .tu1617{background-position:-300px -320px;}
- .tu1717{background-position:-320px -320px;}
- .tu1817{background-position:-340px -320px;}
- .tu1917{background-position:-360px -320px;}
- .tu2017{background-position:-380px -320px;}
- .tu0118{background-position:-0px -340px;}
- .tu0218{background-position:-20px -340px;}
- .tu0318{background-position:-40px -340px;}
- .tu0418{background-position:-60px -340px;}
- .tu0518{background-position:-80px -340px;}
- .tu0618{background-position:-100px -340px;}
- .tu0718{background-position:-120px -340px;}
- .tu0818{background-position:-140px -340px;}
- .tu0918{background-position:-160px -340px;}
- .tu1018{background-position:-180px -340px;}
- .tu1118{background-position:-200px -340px;}
- .tu1218{background-position:-220px -340px;}
- .tu1318{background-position:-240px -340px;}
- .tu1418{background-position:-260px -340px;}
- .tu1518{background-position:-280px -340px;}
- .tu1618{background-position:-300px -340px;}
- .tu1718{background-position:-320px -340px;}
- .tu1818{background-position:-340px -340px;}
- .tu1918{background-position:-360px -340px;}
- .tu2018{background-position:-380px -340px;}
- .tu0119{background-position:-0px -360px;}
- .tu0219{background-position:-20px -360px;}
- .tu0319{background-position:-40px -360px;}
- .tu0419{background-position:-60px -360px;}
- .tu0519{background-position:-80px -360px;}
- .tu0619{background-position:-100px -360px;}
- .tu0719{background-position:-120px -360px;}
- .tu0819{background-position:-140px -360px;}
- .tu0919{background-position:-160px -360px;}
- .tu1019{background-position:-180px -360px;}
- .tu1119{background-position:-200px -360px;}
- .tu1219{background-position:-220px -360px;}
- .tu1319{background-position:-240px -360px;}
- .tu1419{background-position:-260px -360px;}
- .tu1519{background-position:-280px -360px;}
- .tu1619{background-position:-300px -360px;}
- .tu1719{background-position:-320px -360px;}
- .tu1819{background-position:-340px -360px;}
- .tu1919{background-position:-360px -360px;}
- .tu2019{background-position:-380px -360px;}
- .tu0120{background-position:-0px -380px;}
- .tu0220{background-position:-20px -380px;}
- .tu0320{background-position:-40px -380px;}
- .tu0420{background-position:-60px -380px;}
- .tu0520{background-position:-80px -380px;}
- .tu0620{background-position:-100px -380px;}
- .tu0720{background-position:-120px -380px;}
- .tu0820{background-position:-140px -380px;}
- .tu0920{background-position:-160px -380px;}
- .tu1020{background-position:-180px -380px;}
- .tu1120{background-position:-200px -380px;}
- .tu1220{background-position:-220px -380px;}
- .tu1320{background-position:-240px -380px;}
- .tu1420{background-position:-260px -380px;}
- .tu1520{background-position:-280px -380px;}
- .tu1620{background-position:-300px -380px;}
- .tu1720{background-position:-320px -380px;}
- .tu1820{background-position:-340px -380px;}
- .tu1920{background-position:-360px -380px;}
- .tu2020{background-position:-380px -380px;}
- .tu0121{background-position:-0px -400px;}
- .tu0221{background-position:-20px -400px;}
- .tu0321{background-position:-40px -400px;}
- .tu0421{background-position:-60px -400px;}
- .tu0521{background-position:-80px -400px;}
- .tu0621{background-position:-100px -400px;}
- .tu0721{background-position:-120px -400px;}
- .tu0821{background-position:-140px -400px;}
- .tu0921{background-position:-160px -400px;}
- .tu1021{background-position:-180px -400px;}
- .tu1121{background-position:-200px -400px;}
- .tu1221{background-position:-220px -400px;}
- .tu1321{background-position:-240px -400px;}
- .tu1421{background-position:-260px -400px;}
- .tu1521{background-position:-280px -400px;}
- .tu1621{background-position:-300px -400px;}
- .tu1721{background-position:-320px -400px;}
- .tu1821{background-position:-340px -400px;}
- .tu1921{background-position:-360px -400px;}
- .tu2021{background-position:-380px -400px;}
- .tu0122{background-position:-0px -420px;}
- .tu0222{background-position:-20px -420px;}
- .tu0322{background-position:-40px -420px;}
- .tu0422{background-position:-60px -420px;}
- .tu0522{background-position:-80px -420px;}
- .tu0622{background-position:-100px -420px;}
- .tu0722{background-position:-120px -420px;}
- .tu0822{background-position:-140px -420px;}
- .tu0922{background-position:-160px -420px;}
- .tu1022{background-position:-180px -420px;}
- .tu1122{background-position:-200px -420px;}
- .tu1222{background-position:-220px -420px;}
- .tu1322{background-position:-240px -420px;}
- .tu1422{background-position:-260px -420px;}
- .tu1522{background-position:-280px -420px;}
- .tu1622{background-position:-300px -420px;}
- .tu1722{background-position:-320px -420px;}
- .tu1822{background-position:-340px -420px;}
- .tu1922{background-position:-360px -420px;}
- .tu2022{background-position:-380px -420px;}
- .tu0123{background-position:-0px -440px;}
- .tu0223{background-position:-20px -440px;}
- .tu0323{background-position:-40px -440px;}
- .tu0423{background-position:-60px -440px;}
- .tu0523{background-position:-80px -440px;}
- .tu0623{background-position:-100px -440px;}
- .tu0723{background-position:-120px -440px;}
- .tu0823{background-position:-140px -440px;}
- .tu0923{background-position:-160px -440px;}
- .tu1023{background-position:-180px -440px;}
- .tu1123{background-position:-200px -440px;}
- .tu1223{background-position:-220px -440px;}
- .tu1323{background-position:-240px -440px;}
- .tu1423{background-position:-260px -440px;}
- .tu1523{background-position:-280px -440px;}
- .tu1623{background-position:-300px -440px;}
- .tu1723{background-position:-320px -440px;}
- .tu1823{background-position:-340px -440px;}
- .tu1923{background-position:-360px -440px;}
- .tu2023{background-position:-380px -440px;}
- .tu0124{background-position:-0px -460px;}
- .tu0224{background-position:-20px -460px;}
- .tu0324{background-position:-40px -460px;}
- .tu0424{background-position:-60px -460px;}
- .tu0524{background-position:-80px -460px;}
- .tu0624{background-position:-100px -460px;}
- .tu0724{background-position:-120px -460px;}
- .tu0824{background-position:-140px -460px;}
- .tu0924{background-position:-160px -460px;}
- .tu1024{background-position:-180px -460px;}
- .tu1124{background-position:-200px -460px;}
- .tu1224{background-position:-220px -460px;}
- .tu1324{background-position:-240px -460px;}
- .tu1424{background-position:-260px -460px;}
- .tu1524{background-position:-280px -460px;}
- .tu1624{background-position:-300px -460px;}
- .tu1724{background-position:-320px -460px;}
- .tu1824{background-position:-340px -460px;}
- .tu1924{background-position:-360px -460px;}
- .tu2024{background-position:-380px -460px;}
- .tu0125{background-position:-0px -480px;}
- .tu0225{background-position:-20px -480px;}
- .tu0325{background-position:-40px -480px;}
- .tu0425{background-position:-60px -480px;}
- .tu0525{background-position:-80px -480px;}
- .tu0625{background-position:-100px -480px;}
- .tu0725{background-position:-120px -480px;}
- .tu0825{background-position:-140px -480px;}
- .tu0925{background-position:-160px -480px;}
- .tu1025{background-position:-180px -480px;}
- .tu1125{background-position:-200px -480px;}
- .tu1225{background-position:-220px -480px;}
- .tu1325{background-position:-240px -480px;}
- .tu1425{background-position:-260px -480px;}
- .tu1525{background-position:-280px -480px;}
- .tu1625{background-position:-300px -480px;}
- .tu1725{background-position:-320px -480px;}
- .tu1825{background-position:-340px -480px;}
- .tu1925{background-position:-360px -480px;}
- .tu2025{background-position:-380px -480px;}
- .tu0126{background-position:-0px -500px;}
- .tu0226{background-position:-20px -500px;}
- .tu0326{background-position:-40px -500px;}
- .tu0426{background-position:-60px -500px;}
- .tu0526{background-position:-80px -500px;}
- .tu0626{background-position:-100px -500px;}
- .tu0726{background-position:-120px -500px;}
- .tu0826{background-position:-140px -500px;}
- .tu0926{background-position:-160px -500px;}
- .tu1026{background-position:-180px -500px;}
- .tu1126{background-position:-200px -500px;}
- .tu1226{background-position:-220px -500px;}
- .tu1326{background-position:-240px -500px;}
- .tu1426{background-position:-260px -500px;}
- .tu1526{background-position:-280px -500px;}
- .tu1626{background-position:-300px -500px;}
- .tu1726{background-position:-320px -500px;}
- .tu1826{background-position:-340px -500px;}
- .tu1926{background-position:-360px -500px;}
- .tu2026{background-position:-380px -500px;}
调用:直接class="icon tu0501"
CSS从大图片上截取小图标的更多相关文章
- CSS从大图片上截取小图标的操作
注:图片名称(tabicons.png)每个小图标width:18px;height:18px从左上角坐标为(-0px;-0px;); 例如第一个对号的坐标为(-0px;-0px;)第二个加号的图标为 ...
- CSS从大图片上截取小图标的操作(转)
一张图片,用CSS分割成多个小图标. css样式: .icon{ background:url(../images/tabicons.png) no-repeat;width:18px; line-h ...
- CSS从大图片上截取小图标的操作以及三角形的画法
#name{ background:url(images/name.png) no-repeat 2px 2px; background-position: -2px -70px;//其中这个是定位图 ...
- CSS之fontAwesome代替网页icon小图标
引言 奥森图标(Font Awesome)提供丰富的矢量字体图标—通过CSS可以任意控制所有图标的大小 ,颜色,阴影. 网页小图标到处可见,如果一个网页都是干巴巴的文字和图片,而没有小图标,会显得非常 ...
- <转载>使用css让大图片不超过网页宽度
让大图片不超过网页宽度,让图片不撑破通过CSS样式设置的DIV宽度! 接下来,我们来介绍下网站在开发DIV+CSS的时候会遇到一个问题,在发布一个大图片的时候因为图片过宽会撑破自己设置的div宽度的问 ...
- html标题上加上小图标
一般网站标题上都会有小图标,后面跟上文字,实现代码如下: <link rel = "Shortcut Icon" href="images/nav_logo.ico ...
- wangEditor大图片上传问题
wangEditor上传大图片时候会 上传超时.后端没有问题,我百度很多,又去群里问,都得不到答案.最后问同事,有个属性 editor.config.uploadTimeout = 10000000 ...
- 大图片上传(ImageIO,注意有的图片不能上传时因为他是tiff格式)
一下是必要的: 1.enctype="multipart/form-data" 2. //不要使用myeclipse自动生成的get.set方法(struts2中的用法) publ ...
- echarts 去掉上面的小图标
在option里找到toolbox,删除对应的代码即可: toolbox: { y : -30, show : true, feature : { mark : '辅助线开关', markUndo : ...
随机推荐
- 冒泡排序 [组合数学+dp]
题面 思路 一眼看过去以为NOI2018的题出出来了= =贼吓人 首先,对于这个难度,我们有一个比较明显的结论: 一个序列的难度,等于这个东西: $hard=max(\sum_{j=i+1}^n[a_ ...
- ZCC loves cube(cube)
题目描述 调戏完了狗,ZCC开始玩起了积木.ZCC的面前有一块n*n的棋盘,他要用这些1*1*1的积木在棋盘上搭出一个宏伟的建筑.积木有三种颜色,ZCC认为一个建筑要被称为宏伟的应该满足能从正面看到的 ...
- linux中shell变量$#,$@,$0,$1,$2
linux中shell变量$#,$@,$0,$1,$2的含义解释: 变量说明: $$ Shell本身的PID(ProcessID) $! Shell最后运行的后台Process的PID $? 最后运行 ...
- css垂直居中的几种方式
1. 对于可以一行处理的 设置 height:apx; line-height:apx; 2.对于一段文字(会多行显示的) ->2.1如果是可以设置一个固定高度的 ...
- linux -特殊符号
在shell中常用的特殊符号罗列如下: # ; ;; . , / \\ 'string'| ! $ ${} $? $$ $* \"string\"* ** ...
- ios手机弹出层上表单的操作,收起键盘焦点错乱的问题
今天遇到了ios手机下 弹出层上form表单 当收起键盘后,焦点错乱,无法再操作的问题 解决办法 function device() { const u = navigator.userAgent; ...
- Linux高端内存映射(上)【转】
转自:http://blog.csdn.net/vanbreaker/article/details/7579941 版权声明:本文为博主原创文章,未经博主允许不得转载. 目录(?)[-] 高端内 ...
- (二十)linux中i2c的ioctl,write,read函数的使用
一.ioctl函数的使用:原型:struct ioctl(struct file *file,unsigned int cmd,unsigned long arg);cmd有I2C_SLAVE,I2C ...
- 【计算机网络】简单网络管理协议 SNMP
计算机网络 6.7节学习笔记 SNMP: 管理网络上的对象时,必然会给该对象添加一些软件或硬件,但这种添加必须对原有对象的影响尽量小. SNMP中的管理程序和代理程序按客户-服务器方式工作.管理程序 ...
- 在libGDX中使用Spine骨骼动画
首先,github是个宝库,实践流的读者可以直接看例子进行学习 1.这是Spine官方给出的例子 https://github.com/EsotericSoftware/spine-superspin ...