04
2018
08

layer弹窗打开对应的id

<script src="js/jquery-1.12.3-jquery.min.js"></script>

<script src="layer/layer.js"></script>


<a onClick="vote('<%=rs("id")%>')"><%=rs("userID")%></a>

04
2018
08

jquery删除元素

<div class="anco">

<p id="rb">喜欢钱</p>

<p id="rb2">我喜欢钱</p>

<p id="rb3">我很喜欢钱</p>

<p id="rb4">我很喜欢有钱</p>

<p id="rb5">我很喜欢有很多钱</p>

03
2018
08

jquery元素内和元素前后添加文字

<button id="hxjxjs" type="button">元素内文字后加内容</button>

<button id="hxjn" type="button">元素内文字前加内容</button>

<button id="xjswzr" type="button">元素外元素后面加内容</button>

31
2018
07

jquery_dom设置赋值id及表单内容

<button id="xj" type="button">设置class中的内容</button>

<button id="rxj" type="button">赋值class中的html代码及内容</button>

<button id="txj" type="button">赋值input表单是id的内容</button>

31
2018
07

jquery_dom获取id及表单内容

<button id="xj" type="button">获取class中的内容</button>

<button id="rxj" type="button">获取class中的html代码及内容</button>

<button id="txj" type="button">获取input表单中的内容</button>

30
2018
07

jquery动画左右上下移动放大缩小

<button id="gxj" type="button">左移动</button>

<button id="rxj" type="button">右移动</button>

<button id="txj" type="button">上移动</button>

<button id="txjb" type="button">下移动</button>

28
2018
07

asp显示货币的两种形式,带小于0的方式

第一种,普通的方式,可以显示为11.17元

后台的2是小数点后面2位的意思

<%=FormatNumber(Rs("xc"),2)%>



第二种,可以显示小于0或是等于0的货币,例:0.00元

后面那个-1就是专用门来显示货币小于1用的

<%=FormatNumber(Rs("xc"),2,-1)%>


27
2018
07

css的鼠标手势大全

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

25
2018
07

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

25
2018
07

background: url的全部介绍

方法/步骤

1

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

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

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

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

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