首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏walterlv - 吕毅的博客

    为博客添加可切换的暗色和亮色主题

    当然,我们只改颜色,其他的不改: .post-content p, .post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content ul, .post-content ol, .post-content iframe, .post-content div.post-inline h1, body.dark-theme .post-content h2, body.dark-theme .post-content h3, body.dark-theme .post-content h4, body.dark-theme .post-content h5, body.dark-theme .post-content ul, body.dark-theme .post-content white } 不过,在暗色背景下,我希望标题不需要加粗,只需要更亮即可: .post-content h1, .post-content h2, .post-content h3, .post-content

    1.3K10发布于 2018-09-18
  • 来自专栏子舒的个人博客

    实现图片灯箱功能

    这里的 .post-content 正文的类名,如果你是别的类名,可以直接将 .post-content 替换掉。 $(function(){ $('.post-content img').addClass('smallimg') $('.post-content img').wrap('<div $(function(){ $('.post-content img').addClass('smallimg') $('.post-content img').wrap('<div

    3K20编辑于 2022-06-09
  • 来自专栏钻芒博客

    WordPress H标题美化

    效果如下图图片CSS样式代码.post-content h1,.post-content h2,.post-content h3,.post-content h4,.post-content h5 .post-content : 0px solid red;padding: 5px 12px;border-left: 5px solid red;margin: 12px 0px;border-radius: 0rem;}.post-content solid #FF1493;padding: 5px 12px;border-left: 5px solid #FF1493;border-radius: 0rem;margin: 12px 0px;}.post-content solid #4169E1;padding: 5px 12px;border-left: 5px solid #4169E1;margin: 12px 0px;border-radius: 0rem;}.post-content solid #3CB371;padding: 5px 12px;border-left: 5px solid #3CB371;margin: 12px 0px;border-radius: 0rem;}.post-content

    1.1K10编辑于 2023-05-16
  • 来自专栏有趣的django

    BBS论坛(二十九)

    post.read_count }} 评论数:0

    {{ post.content|safe }} </article margin-top: 20px; padding-bottom: 10px; } .post-info-group span{ margin-right: 20px; } .post-content { margin-top: 20px; } .post-content img{ max-width:100%; }

    43230发布于 2019-02-13
  • 来自专栏MyTechnology

    修改Mirages主题文章布局

    style type="text/css" > #footer { font-size: 0.9rem; line-height: 30px; } .post-content , .post-content ul li{ font-size: 1.2em ! important; } .post-content code { font-size: 0.9em ! important; } .post-content pre { line-height: 1.97em !

    51210发布于 2020-07-31
  • 来自专栏CMS建站教程

    解决WordPress 文章英文单词溢出/单词断词等问题

    首先,找到文章内容外层 p 的样式标签:.post-content p, .post-content figure 在积木优化设置中,找到自定义模块,在头部自定义代码中插入样式代码,如下图: .post-content p, .post-content figure { word-break: keep-all; word-wrap: break-word; white-space: pre-wrap

    2.1K30编辑于 2022-02-22
  • 来自专栏技巧笔记

    Typecho图片靠左改为默认居中显示

    这里将以我的博客为例: 图片 可以看到我的文章class="post-content" 所以我的代码如下: /*文章图片默认改为居中*/ #main .post-zhengwen .post-wenzhang .post-content img{ margin:0 auto; display:block; } 放到我的style.css两个文件中

    1.6K20编辑于 2022-11-28
  • 来自专栏目的地-Destination

    将文章内的超链接改成卡片式链接展示

    script> cardLink(document.querySelectorAll('article a[target=_blank]')) </script> 当前主题方式:即为div的id=post-content <script> cardLink(document.querySelectorAll('#post-content a[target=_blank]')) </script> 原理 1.请求目标链接的 url=' cardLink(document.querySelectorAll('#post-content a[target=_blank]')) </script> 大功告成 其他使用方式 <

    2.2K20编辑于 2023-03-06
  • 来自专栏代码编写世界

    给Markdown渲染网页增加一个目录组件(Vite+Vditor+Handlebars)(上)

    blogMeta.categoryNames}} {{this}} {{/each}} 收录该内容

    <div id="<em>post-content</em> raw"; export function CreateTocPanel() { const headings = document.querySelectorAll( "#post-content h1, #post-content h2, #post-content h3" ); const tocContent = []; headings.forEach((heading, 首先,搜索查询渲染成HTML形式的博文内容中的标题元素h1、h2和h3: const headings = document.querySelectorAll( "#post-content h1 , #post-content h2, #post-content h3" ); 然后提取出关键数据: const tocContent = []; headings.forEach((heading

    29010编辑于 2025-06-13
  • 来自专栏颜颜yan_的学习笔记

    【微信小程序】vertical属性、文章列表

    image class="post-image" src="/images/post/unknow-story.jpg" mode="aspectFit"></image> <text class="<em>post-content</em> image class="post-image" src="/images/post/biancheng.jpg" mode="aspectFit"></image> <text class="<em>post-content</em> <image class="post-image" src="/images/post/alive.jpg" mode="aspectFit"></image> <text class="<em>post-content</em> <image class="post-image" src="/images/post/harry.jpg" mode="aspectFit"></image> <text class="<em>post-content</em> font-weight: 600; color: #333; margin-bottom: 10px; margin-left: 10px; } /* 文章简介 */ .<em>post-content</em>

    91040编辑于 2022-12-01
  • 来自专栏blog-技术博客

    网页引入mathjax,latex

    TeX-AMS-MML_HTMLorMML"></script> 整理二 <script type="text/x-mathjax-config"> var mathId = document.getElementById("post-content == 'undefined'){ var mathId = document.getElementById("post-content"); MathJax.Hub.Queue

    92320发布于 2020-05-18
  • 来自专栏私人订制

    实现图片懒加载jquery.scrollLoading.js

    上面已经说了如果你程序自带jq就忽略即可,大概就这样吧 第二步 找到你的底部文件,增加两段jspiex.gif为你要首次懒加载的图片,图片大家可以自己去找或者用我的 点击查看懒加载图片 说明一下:.post-content img这个意思就是这个某class里面名为post-content下面的的img标签,具体那里自己找吧 <script type="text/javascript"> $(".post-content

    3.3K20编辑于 2023-05-11
  • 来自专栏有趣的django

    微信小程序实战--集阅读与电影于一体的小程序项目(一)

    { margin-left: 16px; width: 100%; height: 340rpx; margin:auto 0; margin-bottom: 15px; } .post-content post-title'>{{title}}</text> <image class='post-image' src='{{post_img}}'></image> <text class='<em>post-content</em> item.title}}</text> <image class='post-image' src='{{item.post_img}}'></image> <text class='<em>post-content</em> item.title}}</text> <image class='post-image' src='{{item.imgSrc}}'></image> <text class='<em>post-content</em> { margin-left: 16px; width: 100%; height: 340rpx; margin:auto 0; margin-bottom: 15px; } .<em>post-content</em>

    1.3K20发布于 2018-08-30
  • 来自专栏有趣的django

    BBS论坛(三十)

    post.read_count }} 评论数:0

    {{ post.content|safe }} </article ='/signin/' }else{ var content=window.ue.getContent(); var post_id=$('#post-content

    4K20发布于 2019-02-13
  • 【持续更新】Handsome主题美化

    h1 {font-size: 30px} #post-content h2 {position: relative;margin: 36px 0 20px! important;font-size: 1.55em;display: inline-block;} #post-content h3 {font-size: 20px} #post-content h2:hover::after {width: 2.5em;} #post-content h1,#post-content h2,#post-content h3,#post-content h4 ,#post-content h5,#post-content h6 {color:#666;line-height:1.4;font-weight:700;margin:30px 0 10px 0} img { border-radius: 10px; transition: 0.5s; } .post-content img:hover { transform:

    40311编辑于 2025-06-28
  • 来自专栏梦溪博客

    Typecho handsome主题介绍

    文章内头图和文章图片悬停放大并将超出范围隐藏 .entry-thumbnail { overflow: hidden; } #post-content img { border-radius : 10px; transition: 0.5s; } #post-content img:hover { transform: scale(1.05); } 8.

    2.4K21编辑于 2021-12-09
  • 来自专栏CSDNToQQCode

    万能工具大全——待办事项应用

    flex-wrap: wrap; } .post-meta span { display: flex; align-items: center; gap: 5px; } .post-content padding-bottom: 10px; border-bottom: 2px solid var(--secondary-color); color: var(--primary-color); } .post-content p, .post-content ul, .post-content ol { margin-bottom: 20px; } .post-content ul, .post-content ol { padding-left: 20px; } .post-content li { margin-bottom: 10px; } .tool-demo { background-color

    26910编辑于 2025-12-16
  • 来自专栏Blog记录

    Handsome主题介绍 + 美化样式

    文章内头图和文章图片悬停放大并将超出范围隐藏 .entry-thumbnail { overflow: hidden; } #post-content img { border-radius : 10px; transition: 0.5s; } #post-content img:hover { transform: scale(1.05); } 8.

    3.3K41编辑于 2021-12-14
  • 来自专栏泽泽社

    Typecho根据文章cid与字段名获取字段值

    linkCard('.post-content','0');

    2.8K10编辑于 2023-04-17
  • 【持续更新】Handsome主题美化

    h1 {font-size: 30px} #post-content h2 {position: relative;margin: 36px 0 20px! important;font-size: 1.55em;display: inline-block;} #post-content h3 {font-size: 20px} #post-content h2:hover::after {width: 2.5em;} #post-content h1,#post-content h2,#post-content h3,#post-content h4, #post-content h5,#post-content h6 {color:#666;line-height:1.4;font-weight:700;margin:30px 0 10px 0} / img { border-radius: 10px; transition: 0.5s; } .post-content img:hover { transform: scale

    48010编辑于 2025-07-14
  • 领券