Sublime Text
<!DOCTYPE html> <html> <head> <style type="text/css"> .turtle{ width:144px; height:65px; background:url(../image/sprites.jpg) 144px 210px; } </style> </head> <body> <h3>Dưới đây là tấm hình gốc</h3> <img src="../image/sprites.jpg"> <h3>Dưới đây là phần hình ảnh trích xuất, có kích thước 144x65</h3> <div class="turtle"></div> </body> </html>
<!DOCTYPE html> <html> <head> <style type="text/css"> .turtle{ width:144px; height:65px; background:url(../image/sprites.jpg) 144px 210px; } </style> </head> <body> <h3>Dưới đây là tấm hình gốc</h3> <img src="../image/sprites.jpg"> <h3>Dưới đây là phần hình ảnh trích xuất, có kích thước 144x65</h3> <div class="turtle"></div> </body> </html>