css代码如何实现居中

html-css07

css代码如何实现居中,第1张

.corpmenu {

    CLEAR: both background-color:#32648f WIDTH: auto HEIGHT: 45px RIGHT:auto

    text-align: center

}

.corpmenu UL {

PADDING-RIGHT: auto PADDING-LEFT: auto PADDING-BOTTOM: 100px MARGIN: 0px 0px 0px 0px PADDING-TOP: 0px LIST-STYLE-TYPE: none

text-align: center

}

.corpmenu LI {

 BACKGROUND: url(GSMenuRight.gif) no-repeat right 50%  

 display: inline-block

}

你试试,我是按照

<div class=corpmenu>

<ul ><li>标题</li><li>标题</li><li>标题</li></ul></div>

程文件: svchost or svchost.exe

进程名称: Microsoft Service Host Process

进程类别:其他进程

英文描述:

svchost.exe is a system process belonging to the Microsoft Windows Operating System which handles processes executed from DLLs. This program is important for the stable and secure running of your computer and should not be terminated. Note: svchost.

中文参考:

svchost.exe是一个属于微软Windows操作系统的系统程序,用于执行DLL文件。这个程序对你系统的正常运行是非常重要的。注意:svchost.exe也有可能是W32.Welchia.Worm病毒,它利用Windows LSASS漏洞,制造缓冲区溢出,导致你计算机关机。更多详细信息参考:http://www.microsoft.com/technet/security/bulletin/ms04-011.mspx,该进程的安全等级是建议立即删除。

出品者:Microsoft Corp.

属于:Microsoft Windows Operating System

系统进程:Yes

后台程序:Yes

网络相关:Yes

常见错误:N/A

内存使用:N/A

安全等级 (0-5): 0

间谍软件:No

广告软件:No

病毒:No

木马:No

发现

在基于nt内核的windows操作系统家族中,不同版本的windows系统,存在不同数量的“svchost”进程,用户使用“任务管理器”可查看其进程数目。一般来说,win2000有两个svchost进程,winxp中则有四个或四个以上的svchost进程(以后看到系统中有多个这种进程,千万别立即判定系统有病毒了哟),而win2003server中则更多。这些svchost进程提供很多系统服务,如:rpcss服务(remoteprocedurecall)、dmserver服务(logicaldiskmanager)、dhcp服务(dhcpclient)等。

如果要了解每个svchost进程到底提供了多少系统服务,可以在win2000的命令提示符窗口中输入“tlist-s”命令来查看,该命令是win2000supporttools提供的。在winxp则使用“tasklist/svc”命令。

svchost中可以包含多个服务

深入

windows系统进程分为独立进程和共享进程两种,“svchost.exe”文件存在于“%systemroot%system32”目录下,它属于共享进程。随着windows系统服务不断增多,为了节省系统资源,微软把很多服务做成共享方式,交由svchost.exe进程来启动。但svchost进程只作为服务宿主,并不能实现任何服务功能,即它只能提供条件让其他服务在这里被启动,而它自己却不能给用户提供任何服务。那这些服务是如何实现的呢?

原来这些系统服务是以动态链接库(dll)形式实现的,它们把可执行程序指向svchost,由svchost调用相应服务的动态链接库来启动服务。那svchost又怎么知道某个系统服务该调用哪个动态链接库呢?这是通过系统服务在注册表中设置的参数来实现。下面就以rpcss(remoteprocedurecall)服务为例,进行讲解。

从启动参数中可见服务是靠svchost来启动的。

实例

以windowsxp为例,点击“开始”/“运行”,输入“services.msc”命令,弹出服务对话框,然后打开“remoteprocedurecall”属性对话框,可以看到rpcss服务的可执行文件的路径为“c:\windows\system32\svchost-krpcss”,这说明rpcss服务是依靠svchost调用“rpcss”参数来实现的,而参数的内容则是存放在系统注册表中的。

在运行对话框中输入“regedit.exe”后回车,打开注册表编辑器,找到[hkey_local_machinesystemcurrentcontrolsetservicesrpcss]项,找到类型为“reg_expand_sz”的键“magepath”,其键值为“%systemroot%system32svchost-krpcss”(这就是在服务窗口中看到的服务启动命令),另外在“parameters”子项中有个名为“servicedll”的键,其值为“%systemroot%system32rpcss.dll”,其中“rpcss.dll”就是rpcss服务要使用的动态链接库文件。这样svchost进程通过读取“rpcss”服务注册表信息,就能启动该服务了。

解惑

因为svchost进程启动各种服务,所以病毒、木马也想尽办法来利用它,企图利用它的特性来迷惑用户,达到感染、入侵、破坏的目的(如冲击波变种病毒“w32.welchia.worm”)。但windows系统存在多个svchost进程是很正常的,在受感染的机器中到底哪个是病毒进程呢?这里仅举一例来说明。

假设windowsxp系统被“w32.welchia.worm”感染了。正常的svchost文件存在于“c:\windows\system32”目录下,如果发现该文件出现在其他目录下就要小心了。“w32.welchia.worm”病毒存在于“c:\windows\system32wins”目录中,因此使用进程管理器查看svchost进程的执行文件路径就很容易发现系统是否感染了病毒。windows系统自带的任务管理器不能够查看进程的路径,可以使用第三方进程管理软件,如“windows优化大师”进程管理器,通过这些工具就可很容易地查看到所有的svchost进程的执行文件路径,一旦发现其执行路径为不平常的位置就应该马上进行检测和处理。

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

=========================================================

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Svchost.exe说明解疑对Svchost的困惑

---------------

2006年12月21日

Svchost.exe文件对那些从动态连接库中运行的服务来说是一个普通的主机进程名。Svhost.exe文件定位在系统的%systemroot%\system32文件夹下。在启动的时候,Svchost.exe检查注册表中的位置来构建需要加载的服务列表。这就会使多个Svchost.exe在同一时间运行。每个Svchost.exe的回话期间都包含一组服务,以至于单独的服务必须依靠Svchost.exe怎样和在那里启动。这样就更加容易控制和查找错误。

.

Svchost.exe 组是用下面的注册表值来识别。

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Svchost

每个在这个键下的值代表一个独立的Svchost组,并且当你正在看活动的进程时,它显示作为一个单独的例子。每个键值都是REG_MULTI_SZ类型的值而且包括运行在Svchost组内的服务。每个Svchost组都包含一个或多个从注册表值中选取的服务名,这个服务的参数值包含了一个ServiceDLL值。

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Service

.

.

更多的信息

.

为了能看到正在运行在Svchost列表中的服务。

开始-运行-敲入cmd

然后在敲入 tlist -s (tlist 应该是win2k工具箱里的东东)

Tlist 显示一个活动进程的列表。开关 -s 显示在每个进程中的活动服务列表。如果想知道更多的关于进程的信息,可以敲 tlist pid。

Tlist 显示Svchost.exe运行的两个例子。

0 System Process

8 System

132 smss.exe

160 csrss.exe Title:

180 winlogon.exe Title: NetDDE Agent

208services.exe

Svcs: AppMgmt,Browser,Dhcp,dmserver,Dnscache,Eventlog,lanmanserver,LanmanWorkst

ation,LmHosts,Messenger,PlugPlay,ProtectedStorage,seclogon,TrkWks,W32Time,Wmi

220 lsass.exe Svcs: Netlogon,PolicyAgent,SamSs

404 svchost.exe Svcs: RpcSs

452 spoolsv.exe Svcs: Spooler

544 cisvc.exe Svcs: cisvc

556 svchost.exe Svcs: EventSystem,Netman,NtmsSvc,RasMan,SENS,TapiSrv

580 regsvc.exe Svcs: RemoteRegistry

596 mstask.exe Svcs: Schedule

660 snmp.exe Svcs: SNMP

728 winmgmt.exe Svcs: WinMgmt

852 cidaemon.exe Title: OleMainThreadWndName

812 explorer.exe Title: Program Manager

1032 OSA.EXE Title: Reminder

1300 cmd.exe Title: D:\WINNT5\System32\cmd.exe - tlist -s

1080 MAPISP32.EXE Title: WMS Idle

1264 rundll32.exe Title:

1000 mmc.exe Title: Device Manager

1144 tlist.exe

在这个例子中注册表设置了两个组。

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Svchost:

netsvcs: Reg_Multi_SZ: EventSystem Ias Iprip Irmon Netman Nwsapagent RasautoRa

sman Remoteaccess SENS Sharedaccess Tapisrv Ntmssvc

rpcss :Reg_Multi_SZ: RpcSs

smss.exe

csrss.exe

这个是用户模式Win32子系统的一部分。csrss代表客户/服务器运行子系统而且是一个基本的子系统必须一直运行。csrss 负责控制windows,创建或者删除线程和一些16位的虚拟MS-DOS环境。

有几个例子 分割线隔开

html>

<head>

<title>css圆角效果</title>

<meta http-equiv="content-type" content="text/htmlcharset=gb2312">

<style type="text/css">

div.RoundedCorner{background: #9BD1FA}

b.rtop, b.rbottom{display:blockbackground: #FFFFFF}

b.rtop b, b.rbottom b{display:blockheight: 1pxoverflow: hiddenbackground: #9BD1FA}

b.r1{margin: 0 5px}

b.r2{margin: 0 3px}

b.r3{margin: 0 2px}

b.rtop b.r4, b.rbottom b.r4{margin: 0 1pxheight: 2px}

</style>

</head>

<body>

<div class="RoundedCorner">

<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>

无图片实现圆角框

<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>

</div>

<br>

<div class="RoundedCorner">

<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>

<br>无图片实现圆角框<br><br>

<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>

</div>

........................................................

<style type="text/css">

.b1 {height:1pxfont-size:1pxoverflow:hiddendisplay:blockbackground:#9BD1FAmargin:0 5px}

.b2 {height:1pxfont-size:1pxoverflow:hiddendisplay:blockbackground:#fff

border-right:2px solid #9BD1FAborder-left:2px solid #9BD1FAmargin:0 3px}

.b3 {height:1pxfont-size:1pxoverflow:hiddendisplay:blockbackground:#fff

border-right:1px solid #9BD1FAborder-left:1px solid #9BD1FAmargin:0 2px}

.b4 {height:2pxfont-size:1pxoverflow:hiddendisplay:blockbackground:#fff

border-right:1px solid #9BD1FAborder-left:1px solid #9BD1FAmargin:0 1px}

</style>

接着看页面代码:

<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>

<br>ssadfsadfsdfdf</br>

<br>ssadfsadfsdfdf</br>

<b class="b4"></b><b class="b3"></b><b class="b2"></b><b class="b1"></b>

当然你也可以用其他的标签<div>或者<span><a>之类,应该也是可以的

.............................................................................

<style type="text/css">

div#nifty{margin: 0 10%background: #9BD1FAwidth: 300pxword-break:break-all}

b.rtop, b.rbottom{display:blockbackground: #FFF}

b.rtop b, b.rbottom b{display:blockheight: 1pxoverflow: hiddenbackground: #9BD1FA}

b.r1{margin: 0 5px}

b.r2{margin: 0 3px}

b.r3{margin: 0 2px}

b.rtop b.r4, b.rbottom b.r4{margin: 0 1pxheight: 2px}

</style>

<center>

<div id="nifty">

<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>

<span style="font-size:16color:#ffffont-family:华文行楷">

家穷人丑一米四九,<br>

小学文化农村户口。<br>

破屋三间病猪一头,<br>

冷锅热灶老婆没有。<br>

今日上网广征女友,<br>

革命道路并肓携手。

</span>

<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b></div>

..........................................

<style type="text/css">

#xsnazzy h1, #xsnazzy h2, #xsnazzy p {margin:0 10pxletter-spacing:1px}

#xsnazzy h1 {font-size:2.5emcolor:#fff}

#xsnazzy h2 {font-size:2emcolor:#06aborder:0}

#xsnazzy p {padding-bottom:0.5em}

#xsnazzy h2 {padding-top:0.5em}

#xsnazzy {background: transparentmargin:1em}

.xtop, .xbottom {display:blockbackground:transparentfont-size:1px}

.xb1, .xb2, .xb3, .xb4 {display:blockoverflow:hidden}

.xb1, .xb2, .xb3 {height:1px}

.xb2, .xb3, .xb4 {background:#cccborder-left:1px solid #08cborder-right:1px solid #08c}

.xb1 {margin:0 5pxbackground:#08c}

.xb2 {margin:0 3pxborder-width:0 2px}

.xb3 {margin:0 2px}

.xb4 {height:2pxmargin:0 1px}

.xboxcontent {display:blockbackground:#cccborder:0 solid #08cborder-width:0 1px}

</style>

<div id="xsnazzy">

<b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>

<div class="xboxcontent">

<h1>圆角边框</h1>

<p>看看吧<br />http://www.ebookit.cn/index.html</p>

<h2>不使用图片的边框</h2>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh

euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim

ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl

ut aliquip ex ea commodo consequat.</p>

<p>Duis autem vel eum iriure dolor in hendrerit

in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla

facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent

luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>

</div>

<b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>

</div>

//网络转载…

.........................................................

<style type="text/css">

<!--

#ibox01 {

overflow: hidden

height: 1px

margin-right: 5px

margin-left: 5px

background-color: #CC0000

}

#ibox02 {

height: 1px

margin-right: 3px

margin-left: 3px

border-right-width: 2px

border-left-width: 2px

border-right-style: solid

border-left-style: solid

border-right-color: #CC0000

border-left-color: #CC0000

overflow: hidden

}

#ibox03 {

height: 1px

margin-right: 2px

margin-left: 2px

border-right-width: 1px

border-left-width: 1px

border-right-style: solid

border-left-style: solid

border-right-color: #CC0000

border-left-color: #CC0000

overflow: hidden

}

#ibox04 {

overflow: hidden

height: 1px

margin-right: 1px

margin-left: 1px

border-right-width: 1px

border-left-width: 1px

border-right-style: solid

border-left-style: solid

border-right-color: #CC0000

border-left-color: #CC0000

}

#ibox05 {

overflow: hidden

height: 1px

margin-right: 1px

margin-left: 1px

border-right-width: 1px

border-left-width: 1px

border-right-style: solid

border-left-style: solid

border-right-color: #CC0000

border-left-color: #CC0000

}

#boxcon {

border-right-width: 1px

border-left-width: 1px

border-right-style: solid

border-left-style: solid

border-right-color: #CC0000

border-left-color: #CC0000

}

.testlayer {

height: 200px

width: 300px

}

.testboxbg {

background-color: #666666

}

.testboxcon {

height: 190px

background-color: #666666

position: relative

}

-->

</style>

<div class="testlayer">

<div id="ibox">

<div id="ibox01" class="testboxbg"></div>

<div id="ibox02" class="testboxbg"></div>

<div id="ibox03" class="testboxbg"></div>

<div id="ibox04" class="testboxbg"></div>

<div id="ibox05" class="testboxbg"></div>

<div id="boxcon" class="testboxcon"></div>

<div id="ibox05" class="testboxbg"></div>

<div id="ibox04" class="testboxbg"></div>

<div id="ibox03" class="testboxbg"></div>

<div id="ibox02" class="testboxbg"></div>

<div id="ibox01" class="testboxbg"></div>

</div>

</div>

</body>

</html>