css中文翻译

html-css05

css中文翻译,第1张

Tip : use css styles to define the type of pst

提示:用css样式来定义列表类型!

Tip : use css styles to define the type of pst

提示:请使用css样式来定义列表!

Css rescue hostages games - 4455 minicpp games

Cs之拯救人质小游戏- 4399小游戏

Discusses setting css editor tab options

讨论如何设置css编辑器的制表符选项。

Css styles are not supported in all browsers

并不是所有浏览器都支持css样式。

Discusses setting general css editor options

讨论如何设置常规css编辑器选项。

This website uses css and is best viewed with the

此网站利用css ,最好看的画面需要

Discusses setting css editor formatting options

讨论如何设置css编辑器格式化选项。

Css styles can be appped to elements within the

Css样式可以应用于html文档中

The css font properties define the font in text

Css字体属性定义文字的字体。

Css pier gunfight games - 4455 minicpp games

Cs之码头枪战小游戏- 4399小游戏

List of css elements that are supported per browser

每种浏览器所支持的css元素的列表

Element in favor of css - based presentation

元素,而更倾向于基于css的表示。

Pair to the css markup to be inserted when you close the

对添加到要插入的css标记中。

Css as they defusing bombs games - 4455 minicpp games

Cs之菜鸟拆弹小游戏- 4399小游戏

The css font properties define the font in text

Css字体属性可定义文字所使用的字体。

To add css style attributes to an html element

在html元素中添加css样式属性

Creating inpne css styles in design view

在“设计”视图中创建内联css样式

For example , open a css style sheet for a document whose

例如,打开一个文档(该文档的

Crop stalks ( css ) are important biomass resources

摘要农作物秸秆是重要的生物质资源。

To apply an existing css style class to an html element

将现有css样式类应用到html元素

You can then use css stypng for these headings

对这些标题可以使用css 。

Gets or sets a css value for the html server control

获取或设置html服务器控件的css值。

Css positioning , html designer , options dialog box

有关详细信息,请参见

Provides options for you to define css style attributes

提供用于定义css样式属性的选项。

Sets the css classes for alternating rows

会为正在修改的行设置css类。

Assigning html elements to a css style class

将html元素分配给css样式类

It is possible to use css to format an xml document

使用css来格式化一份xml文档是可行的。

Understand dvd css copyright is discerned yard

解读dvd css版权识别码

Defining css style rules in style blocks

在style块内定义css样式规则

CSS

释义<一>

CSS(Cascading Style Sheets),即层叠样式表,与HTML超文本标记语言配合以定义网页表现的样式语言。

历史

当初一帮技术人员想出HTML,主要侧重于定义内容,比如<p>表示一个段落,<h1>表示标题,而并没有过多设计HTML的排版和界面效果。

随着Internet的迅猛发展,HTML被广泛应用,上网的人们当然希望网页做得漂亮些,因此HTML排版和界面效果的局限性日益暴露出来。为了解决这个问题,人们也走了不少弯路,用了一些不好的方法,比如给HTML增加很多的属性结果将代码变得很臃肿,将文本变成图片,过多利用Table来排版,用空白的图片表示白色的空间等。直到CSS出现。

CSS可算是网页设计的一个突破,它解决了网页界面排版的难题。可以这么说,HTML的Tag主要是定义网页的内容(Content),而CSS决定这些网页内容如何显示(Layout)。

CSS与网页的链接方法

内嵌样式(Inline Style)

内部样式表(Internal Style Sheet)

外部样式表(External Style Sheet)

内嵌样式(Inline Style)

Inline Style是写在Tag里面的。内嵌样式只对所在的Tag有效。

<P style="font-size:20ptcolor:red">这个Style定义<p></p>里面的文字是20pt字体,字体颜色是红色。</p>

显示示例

内部样式表(Internal Style Sheet)

内部样式表是写在HTML的<head></head>里面的。内部样式表只对所在的网页有效。

<HTML>

<HEAD>

<STYLE type="text/css">

H1.mylayout {border-width:1border:solidtext-align:centercolor:red}

</STYLE>

</HEAD>

<BODY>

<H1 class="mylayout">这个标题使用了Style。</H1>

<H1>这个标题没有使用Style。</H1>

</BODY>

</HTML>

显示示例

内部样式表(Internal Sytle Sheet)要用到Style这个Tag,写法如下:

<STYLE type="text/css">

......

</STYLE>

外部样式表(External Style Sheet)

如果很多网页需要用到同样的样式(Styles),用什么方法呢?

将样式(Styles)写在一个以.css为后缀的CSS文件里,然后在每个需要用到这些样式(Styles)的网页里引用这个CSS文件。

比如可以用文本编辑器(NotePad)建立一个叫home的文件,文件后缀不要用.txt,改成.css。文件内容如下:

H1.mylayout {border-width: 1border: solidtext-align: centercolor:red}

然后你建立一个网页,代码如下:

<HTML>

<HEAD>

<link href="../asdocs/css_tutorials/home.css" rel="stylesheet" type="text/css">

</HEAD>

<BODY>

<H1 class="mylayout">这个标题使用了Style。</H1>

<H1>这个标题没有使用Style。</H1>

</BODY>

</HTML>

显示示例

使用外部(Extenal)样式表,相对于内嵌(Inline)和内部式(Internal)的,有以下优点:

样式代码可以复用。一个外部CSS文件,可以被很多网页共用。

便于修改。如果要修改样式,只需要修改CSS文件,而不需要修改每个网页。

提高网页显示的速度。如果样式写在网页里,会降低网页显示的速度,如果网页引用一个CSS文件,这个CSS文件多半已经在缓存区(其它网页早已经引用过它),网页显示的速度就比较快。

解决css文件过大的问题

如果页面内容过多,css文件会很大,同样会造成很多不便,那么我们该如何解决这个问题呢?我们可以对每个细节进行css设计,比如对于字体的设置我们可以存入font.css文件,对边界等的设定我们可以存入lay.css文件,对其他一些版式的规定可以存入other.css文件,然后我们建立一个main.css文件,然后在里边写入如下代码:

@import url(font.css)

@import url(lay.css)

@import url(other.css)

然后只需要在html文件里添上main.css的链接即可,这样子一方面减小了css文件的容量,另一方面似乎也更方便管理,特别是对大型网站。

串联(Cascading)

CSS第一个字母,是Cascading,意为串联。它是指不同来源的样式(Styles)可以合在一起,形成一种样式。

Cascading的顺序是:

浏览器缺省(browser default)(优先级最低)

外部样式表(Extenal Style Sheet)

内部样式表(Internal Style Sheet)

内嵌样式表(Inline Style)(优先级最高)

样式(Styles)的优先级依次是内嵌(inline), 内部(internal), 外部(external), 浏览器缺省(browser default)。假设内嵌(Inline)样式中有font-size:30pt, 而内部(Internal)样式中有font-size:12pt,那么内嵌(Inline)式样式就会覆盖内部(Internal)样式。