Sublime Text
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> <style type="text/css"> p{ border:1px solid black; width:150px; } </style> </head> <body> <button type="button">Click here</button> <p>- Lập Trình Web</p> <script> $(document).ready(function(){ $("button").click(function(){ $("p").offset({top:100,left:300}); }); }); </script> </body> </html>
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> <style type="text/css"> p{ border:1px solid black; width:150px; } </style> </head> <body> <button type="button">Click here</button> <p>- Lập Trình Web</p> <script> $(document).ready(function(){ $("button").click(function(){ $("p").offset({top:100,left:300}); }); }); </script> </body> </html>