当然,我们只改颜色,其他的不改: .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
这里的 .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
效果如下图图片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
post.read_count }} 评论数:0
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 !
首先,找到文章内容外层 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
这里将以我的博客为例: 图片 可以看到我的文章class="post-content" 所以我的代码如下: /*文章图片默认改为居中*/ #main .post-zhengwen .post-wenzhang .post-content img{ margin:0 auto; display:block; } 放到我的style.css两个文件中
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> 大功告成 其他使用方式 <
blogMeta.categoryNames}} {{this}} {{/each}} 收录该内容
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>
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
上面已经说了如果你程序自带jq就忽略即可,大概就这样吧 第二步 找到你的底部文件,增加两段jspiex.gif为你要首次懒加载的图片,图片大家可以自己去找或者用我的 点击查看懒加载图片 说明一下:.post-content img这个意思就是这个某class里面名为post-content下面的的img标签,具体那里自己找吧 <script type="text/javascript"> $(".post-content
{ 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>
post.read_count }} 评论数:0
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:
文章内头图和文章图片悬停放大并将超出范围隐藏 .entry-thumbnail { overflow: hidden; } #post-content img { border-radius : 10px; transition: 0.5s; } #post-content img:hover { transform: scale(1.05); } 8.
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
文章内头图和文章图片悬停放大并将超出范围隐藏 .entry-thumbnail { overflow: hidden; } #post-content img { border-radius : 10px; transition: 0.5s; } #post-content img:hover { transform: scale(1.05); } 8.
linkCard('.post-content','0');
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