使用HTML语言和CSS开发商业站点(5)

超链接伪类名称(单击前、单击后、 鼠标悬浮时、单击时)。
标签名:           link     visited   hover         active

 

设置鼠标形状的属性(值:默认光标、超链接的指针、指示程序正在忙、指示可用的帮助、指示文本、鼠标呈现十字状)。
cursor                 default           pointer         wait                 help                text         crosshair

 

设置一个背景图像,路径为one.jpg,设置背景位置在左下方,不平铺
background-image:url(one.jpg);
background-position:left bottom;
background-repeat:no-repeat;

 

外边距的上、右、下、左外边距
margin-top

margin-right

margin-bottom

margin-left

 

list-style-type:none;/*去掉默认样式中的黑点*/

 

图片作为超链接 会默认有2px蓝色边框 

border-style:none;/*去掉边框*/ 

cursor:pointer;/*让鼠标变成小手*/

 

背景平铺方式:

no-repeat(不平铺)

repeat(默认平铺)

repeat-x(横向平铺)

repeat-y(纵向平铺)

 

solid(实线) dashed(虚线)

 

padding 内边距

margin  外边距

text-align:center;/*内容水平居中*/
margin:0px auto;/*当前标签 水平居中*/

 

posted on 2017-03-30 21:07  凌雨轩林  阅读(493)  评论(0编辑  收藏  举报

导航