fix: 修复 PJAX 跳转到友链页面时 CSS 不生效的问题
- 将 style 和 script 标签移动到 #primary 容器内部 - PJAX 只替换 #primary 等指定容器的内容,之前样式在容器外导致跳转时无法加载 - 现在通过 PJAX 跳转到友链页面时样式能正确应用
This commit is contained in:
@@ -207,6 +207,11 @@ $captcha_type = get_option('argon_captcha_type', 'math');
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<div class="page-information-card-container"></div>
|
||||
<?php get_sidebar(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
|
||||
<style id="flinks-page-style">
|
||||
/* 桌面端隐藏侧边栏 */
|
||||
@media screen and (min-width: 901px) {
|
||||
@@ -424,10 +429,6 @@ if (typeof jQuery !== 'undefined') {
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="page-information-card-container"></div>
|
||||
<?php get_sidebar(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user