Skip navigation.

一点笔记

简洁不等于简陋

在Opera的Blog里实现段落缩进

,

  现在大部分论坛、Blog系统都支持段落缩进,但不知为何Opera迟迟不肯加入这一功能,这样在输入大段大段的文字时会显得非常不方便。不过,在Opera加入之前,我们不妨用CSS的方法来实现段落缩进。
  首先在Blog的CSS文件里加入下面的代码:
.indent {
margin: 0 20px 0 20px;
}

  然后把文章里你想要缩进段落的文字加上这些代码:
<div class='indent'> 一些文字................ </div>

  由于加入HTML代码会打乱文章的排版,所以还要用下面的代码来代替文章里的回车:
<br></br>

  当然了,手动加入代码的话非常麻烦,我们不妨在opera的菜单文件的[Edit Widget Popup Menu]段下加入下面的代码:
Item, "段落缩进"=Cut & Insert, "<div class='indent'>" & Paste & Insert, "</div>"

  这样我们就可以直接通过右键菜单加入代码。

下面是一个范例:
FAQ:
<br></br>
<div class='indent'>Q5. 我怎样启动/停止服务?
<div class='indent'>A1.有两个函数集能帮助你控制服务:
<br></br>
<div class='indent'>SumTingWong制作的ServiceControl.au3,包含的函数有:
<div class='indent'>_StartService()<br></br>
_StopService()<br></br>
_ServiceExists()<br></br>
_ServiceRunning()<br></br>
_CreateService()<br></br>
_DeleteService()<br></br></div>
</div>
<br></br>
<div class='indent'>CatchFish制作的_NTServices.au3,包含的函数有:
<div class='indent'>_ServiceStart()<br></br>
_ServiceStop()<br></br>
_ServiceStatus()<br></br>
_ServicePause()<br></br></div>
</div></div></div>


效果:
FAQ:
Q5. 我怎样启动/停止服务?
A1.有两个函数集能帮助你控制服务:
SumTingWong制作的ServiceControl.au3,包含的函数有:
_StartService()
_StopService()
_ServiceExists()
_ServiceRunning()
_CreateService()
_DeleteService()

CatchFish制作的_NTServices.au3,包含的函数有:
_ServiceStart()
_ServiceStop()
_ServiceStatus()
_ServicePause()

&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;

OpenDNS真的有用吗?VeryCD资源更新器V1.3

Comments

go5197 16. February 2007, 04:17

以前对这些东东都有兴,但现在不想去学了


没有什么意思啊

mylab 16. February 2007, 14:39

新年快乐!

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies