码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2017-03-30 21:19:57      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:over   ack   link   蓝色   黑点   repeat   visit   bottom   伪类   

超链接伪类名称(单击前、单击后、 鼠标悬浮时、单击时)。
标签名:           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;/*当前标签 水平居中*/

 

技术分享

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

标签:over   ack   link   蓝色   黑点   repeat   visit   bottom   伪类   

原文地址:http://www.cnblogs.com/a2367763409/p/6648530.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!