ソースを参照

修复锚点点击不跳转问题

pull/20/head
xlsea 1年前
コミット
245320218b
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      Akina/functions.php

+ 1
- 1
Akina/functions.php ファイルの表示

@ -323,7 +323,7 @@ function createCatalog($obj) {
global $catalog_count;
$catalog_count ++;
$catalog[] = array('text' => trim(strip_tags($obj[3])), 'depth' => $obj[1], 'count' => $catalog_count);
return '<h'.$obj[1].$obj[2].'><a name="cl-'.$catalog_count.'"></a>'.$obj[3].'</h'.$obj[1].'>';
return '<h'.$obj[1].$obj[2].'><a id="cl-'.$catalog_count.'"></a>'.$obj[3].'</h'.$obj[1].'>';
}, $obj);
return $obj;
}

読み込み中…
キャンセル
保存