-
作者帖子
-
唉,愁人。字号修改 CSS 无效,同样都是文章的题目同样的主题
<h1 class=”post-title entry-title”> 薇晓朵网络工作室未来发展及 2017 年业务重心调整</h1> 贵站的代码
<h1 class=”post-title entry-title fittexted_for_single_post_title” style=”font-size: 41.92px;”> 撰写新文章</h1> 我站的代码
不知道这多出来的样式是哪来的,换其他主题正常,插件全部关闭,都这个情况
你这么一说,还真是,看下主题设置是不是有什么问题,我们是下面:
我们自己博客子主题的 CSS 代码样式,这个不要全部复制到你站点,不然很多东西会别覆盖掉,参考下就行。
/* Theme Name: Hueman – Wei Theme URI: https://www.weixiaoduo.com/themes/hueman Template: hueman Author: 薇晓朵网络工作室 Author URI: https://www.weixiaoduo.com/ Description: Hueman 是一款响应式博客,新闻杂志主题。顶部有两个菜单,均支持三级菜单。页脚小工具,拥有左右两个侧边栏。设计的颜色比较暗,但非常丰富,很容易让人找到内容。另外中文版已增加 bbPress 论坛支持。 Version: 1.0.3 Updated: 2017-6-15 18:33:04 */ @import url("../hueman/style.css"); /* ------------------------------------------------------------------------- * * Theme customization starts here /* ------------------------------------------------------------------------- */ /* Global */ .mystyle {} /* Tablet - 800px, 768px & 720px */ @media only screen and (min-width: 720px) and (max-width: 800px) { .nav li a { line-height: 30px; padding: 10px 20px!important; } .toggle-search { color: #a0a0a0!important; } #nav-topbar .nav-toggle { color: #a0a0a0!important; } #nav-topbar .nav li.current-menu-item>a, #nav-topbar .nav li.current-post-parent>a, #nav-topbar .nav li.current_page_item>a, #nav-topbar .nav li>a:hover { background: rgb(240, 240, 240); } } @media only screen and (min-width: 720px) { #nav-topbar.desktop-sticky { height: 60px; overflow: hidden; } } /* Mobile - 480px & 320px */ @media only screen and (max-width: 719px) { .nav li a { line-height: 30px; padding: 10px 20px!important; } .sidebar-content { display: none; } .toggle-search { color: #a0a0a0!important; } #nav-topbar .nav-toggle { color: #a0a0a0!important; } #nav-topbar .nav li.current-menu-item>a, #nav-topbar .nav li.current-post-parent>a, #nav-topbar .nav li.current_page_item>a, #nav-topbar .nav li>a:hover { background: rgb(240, 240, 240); } } /* Mobile - 320px */ @media only screen and (max-width: 479px) { .mystyle {} } /* ------------------------------------------------------------------------- * * WordPress 主题 薇晓朵中文优化项目 https://www.weixiaoduo.com /* ------------------------------------------------------------------------- */ body { font-family: PingFang SC,Microsoft YaHei,WenQuanYi Micro Hei,Arial,sans-serif; font-weight: 400; } .search-expand, #nav-topbar.nav-container { background-color: #ffffff!important; } #header { background: rgba(255, 255, 255, 0); } #header .pad { padding-top: 60px; padding-bottom: 40px; padding: 60px 0px 40px; } .is-scrolled #header .sticky-visible { -webkit-box-shadow: 0 0 5px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.15); box-shadow: 0 0 5px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.15); } .is-scrolled #nav-topbar.desktop-sticky .nav ul { background-color: rgb(255, 255, 255); } h3.widget-title { font-size: 18px; font-weight: 400; } a.rsswidget { display: block; color: #777777!important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .post-title a:hover { border-bottom: 1px solid #d93d2e; } .entry p a:hover { border-bottom: 1px solid #d93d2e; } .widget a:hover { border-bottom: 1px solid #d93d2e; } .entry { font-size: 15px; } .entry p { letter-spacing: 0.5px; line-height: 2em; color: #747474; line-height: 1.7em; font-weight: 400; -webkit-font-smoothing: antialiased; } .entry img { background-color: #ffffff; -webkit-box-shadow: 0 0 4px rgba(0,0,0,.1); -moz-box-shadow: 0 0 4px rgba(0,0,0,.1); box-shadow: 0 0 4px rgba(0,0,0,.1); } .post-thumbnail img { border: 1px solid #f2f2f2; } .entry ol ul li, .entry ul li { list-style: square; line-height: 2.2em; } .related-posts .post { margin-right: 12px; margin-bottom: 12px; } .featured .post-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .entry-inner { padding: 25px; } .alx-posts .post-item-title, .alx-tab .tab-item-comment, .alx-tab .tab-item-title { font-size: 14px; } #footer-bottom .social-links .social-tooltip { font-size: 20px; } #footer .alx-posts .post-item-title, .s1 .alx-posts .post-item-title { font-size: 1.0em; font-weight: 400; word-wrap: break-word; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .post-byline, .post-meta, .post-nav li a strong, .sharrre-container span { text-transform: none; } .post-meta .post-date { display: none; } .post-meta .post-category { float: left; margin-right: 6px; display: inline-block; padding: 3px 6px; color: #9aabb8; line-height: 1; text-decoration: none; background-color: #f5f5f5; border-radius: 2px; } .post-meta .post-category a{ color: #9aabb8; } .post-meta .post-category a:hover { color: #ffffff; padding: 3px 6px; line-height: 1; text-decoration: none; background-color: #d93d2e; border-radius: 2px; } .pagination a { font-size: 16px; } #footer-bottom #copyright, #footer-bottom #credit { color: #fff; color: rgba(255,255,255,0.5); font-size: 12px; line-height: 1.5em; } .featured .post-title { font-size: 20px; letter-spacing: -0.7px; line-height: 1.4em; } .single .post-title { font-size: 30px; letter-spacing: -1px; line-height: 1.3em; } .single .related-posts .post-title { font-weight: 400; } .post-title { color: #444; font-weight: normal; margin-bottom: 10px; font-size: 20px; font-weight: 400; line-height: 1.5em; -ms-word-wrap: break-word; word-wrap: break-word; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .comment-tabs li a { display: none; } .page-title a:hover { color: #ffffff; background-color: #d93d2e; text-decoration: none; } .page-title a { background-color: #a0a0a0; padding: 3px 10px; font-weight: 400; color: white; border-radius: 2px; } .site-title { font-size: 33px; font-weight: 600; letter-spacing: -0.5px; float: left; line-height: 60px; padding: 10px 0; } .nav>li { font-size: 14px!important; } .nav>li>a { padding: 20px 15px; } .nav ul { top: 60px; } #nav-topbar .nav>li:hover>a, #nav-topbar .nav>li>a:hover { background-color: #ffffff; } #nav-topbar .nav ul { background: #f0f0f0; } #nav-topbar .nav li.current-menu-ancestor>a, #nav-topbar .nav li.current-menu-item>a, #nav-topbar .nav li.current-post-parent>a, #nav-topbar .nav li.current_page_item>a, #nav-topbar .nav li:hover>a, #nav-topbar .nav li>a:hover { color: #d93d2e; } #nav-topbar .nav li a { color: #848b8e; text-decoration: none; } .toggle-search { color: #a0a0a0; padding: 5px 20px; } .toggle-search.active, .toggle-search:hover { background: #d93d2e; color: #fff; } .search-expand-inner { background: rgb(255, 255, 255); padding: 15px; } #footer-bottom #copyright, #footer-bottom #credit { color: #999999; } #footer-bottom .social-links { display: none; } li#wp-admin-bar-my-sites { display: none; } li#wp-admin-bar-wpseo-menu { display: none; } li#wp-admin-bar-delete-cache { display: none; } li#wp-admin-bar-updates { display: none!important; } li#wp-admin-bar-new-user { display: none; } ul#wp-admin-bar-wp-logo-default { display: none; } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { display: none; }
找到问题了,是这个主题的问题,而今天主题已经修复这个问题了,我把主题更新了一下就正常了
https://presscustomizr.com/release-note-for-hueman-pro-v1-0-10-and-hueman-free-v3-3-13/ 官方修复页面
正想问有没有更新主题,问题解决了就好。
给你们添麻烦了。真不好意思。为你们的响应时间点赞,难得!
-
作者帖子
- 话题 「网站搭建完毕发现一个问题,H 标签异常」 已关闭,不接受新回复。