1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<!DOCTYPE html> <meta charset="utf-8"> <style> #anchor { width: 100px; height: 100px; background: orange; } #target { width: 100px; height: 100px; background: green; } </style> <div id="anchor">anchor</div> <div id="target">target</div>