如果頁面過長有滾動條(scroll bar),且希望通過連結的 onclick 事件執行操作;應將它的 href 屬性設為 javascript:void(0);而不是 #,這可以防止不必要的頁面跳動。
e.g.
以前的寫法:
< href="#" onclick="changeTab('condition')">
日後建議寫法:
< href="javascript:void(0)" onclick="changeTab('condition')">
< href="###" onclick="changeTab('condition')">
< href="#" onclick="changeTab('condition'); return false;">
訂閱:
發佈留言 (Atom)
NGINX SSL/設定檔案
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #...
-
有時候,我們想要使用的軟體並沒有被包含到 Ubuntu 的套件中,而程式本身也沒有提供讓 Ubuntu 可以使用的 deb 包,你又不願意從程式碼編譯。但假如軟體提供有 rpm 包的話,我們也是可以在 Ubuntu 中安裝的。 方法一: 1. 先安裝 alien 和 fakero...
-
Source: Automatically Retry Failed Jobs in Quartz Retrying continuously until success: If you want to keep trying over and over again un...
-
我想去澳洲遊學打工, 是說我也工作五年了, 我要再想要怎樣可以保持有收入的狀況過去, 去澳洲打工度假, 打工性質的工作多半是服務員, 或是出力的那種工作, 說實話我不太想要有那種工作, 畢竟我身體沒辦法讓我一直搬重物, 並不是因為我懶惰, 是因為身體希望我可以去做...
沒有留言:
發佈留言