New Document
  Lucky Wandy  
 Welcome to Wandy Wang's Blog Website! 
时 间 记 忆
<<  < 2006 - 11 >  >>
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
最 新 评 论
专 题 分 类
最 新 日 志
最 新 留 言
搜 索
用 户 登 录
友 情 连 接
博 客 信 息
  • 日志:62
  • 评论:41
  • 留言:13
  • 访问:


 
怎样给段落添加背景填充色
[ 2005-11-26 9:15:00 | By: 比特小子 ]
 

我原来给一些文字添加背景色时(比如给文章中的一些代码添加背景色以示区别),总会使用工具栏的突出显示来为文字添加背景色,然而这样的背景色效果不是很好看,尤其是每一行的文字长度不一或是为一整个段落添加这样的背景色结果非常难看。比如:

using System;

using System.Runtime.InteropServices;

public class PortAccess

{

    [DllImport("inpout32.dll", EntryPoint="Out32")]

    public static extern void Output(int adress, int value);

}

后来发现了另一种更好的背景色添加方法,来为段落添加一致且好看得背景色。具体方法如下:

1.  先将光标指向要添加背景色的段落或拖动鼠标选定多个段落:

using System;

using System.Runtime.InteropServices;

 

public class PortAccess

{

    [DllImport("inpout32.dll", EntryPoint="Out32")]

    public static extern void Output(int adress, int value);

}

2.然后,选择[格式][边框和底纹…]:

3.接着在边框和底纹对话框中选定要填充的颜色,并在应用于出选择段落。 OK了,看看效果吧,是不是好多了

using System;

using System.Runtime.InteropServices;

public class PortAccess

{

    [DllImport("inpout32.dll", EntryPoint="Out32")]

    public static extern void Output(int adress, int value);

}

 

 
处理 SSI 文件时出错

发表评论:

    大名:
    密码: (游客无须输入密码)
    主页:
    标题:
    页面数据载入
Powered by Oblog.