预防眼镜变厚,修改俩地方

August 22, 2005 | tags 程序  BLOG  修改   | views
Comments 2
  修改俩地方:
  一、浏览正文时字号大小的选择。
  有时候觉得BLOG上的字体偏小,有时候又觉得刚刚好,于是就加了一段代码,可以自由选择显示字体的大小了。
  修改 b_article-single.html。增加红色的部分。

<h2 class="post-title"><#article/title#></h2>
  <span class="style1">    字号:</span><a href="javascript:doZoom(16)">大</a> <a href="javascript:doZoom(14)">中</a> <a href="javascript:doZoom(12)">小</a>  <div class="post-body"><span id="zoom"><#article/content#></span></div>
  <h5>
    <script type="text/javascript">
function doZoom(size)
{document.getElementById('zoom').style.fontSize=size+'px';}
    </script>

  </h5>



<h6 class="post-footer">
    <#ZC_MSG011#>:<a href="../catalog.asp?auth=<#article/author/id#>"><#article/author/name#></a> | <#ZC_MSG012#>:<a href="../catalog.asp?cate=<#article/category/id#>"><#article/category/name#></a> | <a href="../cmd.asp?act=ArticleEdt&id=<#article/id#>">编辑</a> | <a href="../post/<#article/id#>.html#Comment"><#ZC_MSG013#></a>:<#article/commnums#> | <#ZC_MSG014#>:<#article/trackbacknums#> | <#ZC_MSG130#>:<script type="text/javascript" src="../c_count_js.asp?id=<#article/id#>&act=view"></script> | <a href="#top" title="返回顶部">↑TOP</a> | <span class="style1">字号</span><a href="javascript:doZoom(16)">大</a>-<a href="javascript:doZoom(14)">中</a>-<a href="javascript:doZoom(12)">小</a>

  </h6>

  谢谢随想飞翔的提示。

  二、在浏览时,直接删除垃圾留言。

  修改 b_article_comment.html 文件。增加红色的部分。

<ul class="msg">
  <li class="msgname"><a name="cmt<#article/comment/id#>"><#article/comment/count#></a>.<a href="mailto:<#article/comment/email#>"><#article/comment/name#></a></li>
  <li class="msgurl"><a href="<#article/comment/url#>" rel="nofollow" target="_blank"><#article/comment/url#></a></li>
  <li class="msgarticle"><#article/comment/content#>
  </li>
  <li class="msgtime"><a href="../cmd.asp?act=CommentDel&id=<#article/comment/id#>&log_id=<#article/id#>">※这是一条垃圾留言,删除它</a> | <#article/comment/posttime#></li>
</ul>

  这是看了布羅格的烘培機有了这个功能而学来的,也要感谢七夜


  • 和大家共享一下(引用)
  • Z-Blog交流论坛
  •   修改俩地方:
      一、浏览正文时字号大小的选择。
      有时候觉得BLOG上的字体偏小,有时候又觉得刚刚好,于是就加了一段代码,可以自由选择显示字体的大小了。
      修改 b_article-single.html。增加红色的部分。

    [CODE_LITE]<h2 class="post-title"><#article/title#></h2>
    [FONT-COLOR=Red]<span class="sty...
  • 2005-8-23 0:12:42 [Report Spam]
  • 字体大小修改方法(引用)
  • 运命惟所遇,循环不可寻。
  • <P>这个是<A href="http://www.likk.com/blog/post/150.html">likk</A>兄的修改方法,先收录一下.</P><P>修改俩地方:<BR>  一、浏览正文时字号大小的选择。<BR>  有时候觉得BLOG上的字体偏小,有时候又觉得刚刚好,于是就加了一段代码,可以自由选择显示字体的大小了。<BR>  修改 b_article-single...
  • 2005-8-23 8:54:35 [Report Spam]



发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。