Asp,Php,Jssdk,mysql,mssql,微信公众号开发,小程序开发-学习笔记 收集日常学习笔记和重点,交流QQ:79657181,手机/微信:18611436777

css的鼠标手势大全

css的鼠标手势非常多,最长的手型cursor:pointer,其中cursor:hand,也是手型,但是在火狐和谷歌浏览器下不兼容,所以css鼠标手型手势的话用cursor:pointer最好,以下是其它常用代码

2018年7月27日 | 发布:anco | 分类:css | 评论:0

CSS中代码background:url(图片) no-repeat right center的意思及靠左靠右的用法

最近在模仿一个网页的时候,发现CSS代码里有一行代码:background:url(图片) no-repeat right center不明白是什么意思,百度以后学习到了,在此记载知识点;


这一行代码其实是背景图定义形式的简写

完整形式是:


background-image:url(图片);

background-repeat:no-repeat;

background-position:right center

2018年7月25日 | 发布:anco | 分类:css | 评论:0

background: url的全部介绍

方法/步骤

1

background-color规定要使用的背景颜色。

background-position规定背景图像的位置。

background-size规定背景图片的尺寸。

background-repeat规定如何重复背景图像。

background-origin规定背景图片的定位区域。

2018年7月25日 | 发布:anco | 分类:css | 评论:0

表单input用css控制输入框背景透明

例如:

<input nam="" style="BACKGROUND-COLOR: transparent;"/>

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

还有另一种:

.dd_input_data{border:1px solid #ccc; height:20px;line-height:20px;color:#ccc;text-indent:5px; BACKGROUND-COLOR: transparent; background:url(../images/date.png) no-repeat 98% center}

2018年7月25日 | 发布:anco | 分类:css | 评论:0

css超宽图片居中显示,隐藏左右多余的部分

#wowslider-container2 .ws_images {margin:0 auto; position:relative; width: 100%; height: 420px; overflow: hidden;}

#wowslider-container2 .ws_images a {color: transparent;}

#wowslider-container2 .ws_images img {border: 0; 

width:1920px;position:absolute;top:0;left:50%; margin-left: -960px;

2018年5月26日 | 发布:anco | 分类:css | 评论:0

margin标记可以带一个、二个、三个、四个参数,各有不同的含义。

margin标记可以带一个、二个、三个、四个参数,各有不同的含义。

margin: 20px;(上、下、左、右各20px。)
margin: 20px 40px;(上、下20px;左、右40px。)
margin: 20px 40px 60px;(上20px;左、右40px;下60px。)
margin: 20px 40px 60px 80px;(上20px;右40px;下60px;左80px。)

在css中使用margin可以将margin-top,margin-right,margin-bottom,margin-left,缩写为一个标记,顺序为上右下左(顺时针)。

2018年5月21日 | 发布:anco | 分类:css | 评论:0

css背景颜色过度效果,还可以用于提交按钮submit

.submit{ float:left; background:linear-gradient(to right,#fd9403,#fe593d); width:20%; height:40px; margin-left:3%; border-radius:6px; margin-top:5px; text-align:center; line-height:40px; color:#fff;}

2018年5月14日 | 发布:anco | 分类:css | 评论:0