我的網站的頭版我有此鏈接:http://temporal-16.d246.dinaserver.com/serveis#formulario如何加載頁面並通過url鏈接滾動到html元素?
還與http://temporal-16.d246.dinaserver.com/serveis/#formulario
然後在目標頁面我有這樣的嘗試:
<h2 style="text-align: center;" id="formulario"><a href="#formulario"></a>Sol·licita el teu servei aquí</h2>
問題是,頁面加載但不是在正確的地方首先顯示h2元素。
我該如何解決這個問題?
請改革你的問題...因爲它不清楚.. – Nomistake