我在profile.php中有一個可用的slideDown div。當我點擊用戶名時,個人資料信息會下滑。這裏是結構,從其他頁面調用slideDown()
profile.php - 這工作正常。
$('.showprofile').click(function() {
$('#userprofile').slideDown(1000);
});
我在哪裏卡住是,
我想有users.php
<a href='profile.php#userprofile'>
一個鏈接時,我點擊上面的鏈接我應採取的profile.php上頁面,然後userprofile div應該自動下滑。
我該如何做到這一點?
能不能請你擴大你的答案嗎?我有2頁的網頁users.php和profile.php –
這只是分配在標籤,並在標記或jQuery的? –
–