Lotus教程、Java教程、Java虚拟机、Java软件综合开发社区

Lotus、Domino、Java、C#、Web、数据库综合开发教程、资料社区

Archive for 11月, 2011

超链接样式和水平线样式

Published by admin on 11月 6, 2011

超链接:

a:link{ color :#00688B;text-decoration:none;font-size: small}//未
a:hover{ color :#000000;text-decoration:underline}
a:active{ color :Gray ;text-decoration:underline}
a:visited{ color :#00688B;text-decoration:none;font-size: small }//过

水平线:

<hr size=”1″ style=”border-style: dotted dotted none; border-bottom: medium none;”>

1、普通分隔线:<hr>
——————————————————————————–
2、分隔线宽度属性:<hr width=50%> 或者 <hr width=250> (宽度为实际点数或百分比)
——————————————————————————–
3、分隔线位置属性:<hr align=right width=50%> (位置分为 Left、Center、Right 三种)

Read the rest of this entry »

css 背景图片平铺技巧

Published by admin on 11月 6, 2011

使用css来设置背景图片同传统的做法一样简单,但相对于传统控制方式,css提供了更多的可控选项,我们先来看看最基本的设置图片的方法。

xhtml代码:

<div id=”content”>
</div>

css代码:
#content {
border:1px solid #000fff;
height:500px;
background-image:url(images/bg.GIF);
}

网页中id为content的元素被我们设置了使用images文件夹下的bg.GIF作为背景,与传统表格式布局中的设置并无差别,在默认状态下,背景同样以平铺的方式出现在元素之中。然而使用css来控制背景当然不可能如此简单,实际上css为我们提供了更多用于控制背景的属性,包含可以控制元素是否需要平铺。改进后的代码:

Read the rest of this entry »