overflow属性 1.如果将overflow属性值设定为hidden,则超出容纳范围的文字将被隐藏起来。 div{ overflow:hidden; } 2.如果将overflow属性值设定为scroll,则div元素中将出现固定的水平滚动条与垂直滚动条,文字超出div元素的容纳范围时将被滚动显 ...
分类:
Web程序 时间:
2016-09-03 16:22:18
阅读次数:
198
background-attachment:背景图像是否固定或者随着页面的其余部分滚动。 scroll 默认值。背景图像会随着页面其余部分的滚动而移动。 fixed 当页面的其余部分滚动时,背景图像不会移动。 inherit 规定应该从父元素继承 background-attachment 属性的设 ...
分类:
Web程序 时间:
2016-09-02 11:41:32
阅读次数:
154
看看效果 ,如图使用ioc-scroll就可以实现左侧的菜单栏,可滚动,当然是跟右边(ion-content)的内容分开的,互不干扰。 html: js: css: ...
分类:
其他好文 时间:
2016-09-01 18:32:01
阅读次数:
219
1. 子页面调用父页面方法 parent page var ShowModalWin= function (url,win) { window.showModalDialog(url, win, "dialogWidth=800px;dialogHeight=450px;scroll:no"); } ...
大家好才是真的好 据说要凑够150字,才能发表? <script> $(document).ready(function(){ $(window).scroll(function(){ var cur = $(window).scrollTop(); //div position and next ...
分类:
其他好文 时间:
2016-08-31 22:21:17
阅读次数:
165
ys_scroll.css.ys-scroll-wrapper{
position:relative;
overflow:auto;
-webkit-overflow-scrolling:touch;
}
.ys-scroll-wrapper.ys-scroll-content{
min-height:100%;
}
/*loading-top*/
.ys-scroll-wrapper.loading-top{
display:block;
width:100%;
height:40px;
line-h..
分类:
其他好文 时间:
2016-08-30 23:01:52
阅读次数:
276
在html里,width与height是最常用也是最基础的两个属性,因此,在js里,我们也经常需要操作这两个属性。js关于这两个属性提供了client*,offset*与scroll*,很多同学搞不清楚这三者之间的区别,经常望着这三个属性满脸问号,不知道该用哪个。所以今天就来看一下这三个属相的区别。 ...
分类:
其他好文 时间:
2016-08-30 19:26:16
阅读次数:
220
在html里,width与height是最常用也是最基础的两个属性,因此,在js里,我们也经常需要操作这两个属性。js关于这两个属性提供了client*,offset*与scroll*,很多同学搞不清楚这三者之间的区别,经常望着这三个属性满脸问号,不知道该用哪个。所以今天就来看一下这三个属相的区别。 ...
分类:
其他好文 时间:
2016-08-30 18:02:16
阅读次数:
168
恢复内容开始 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>点击回到页面顶部</title> <style type="text/css"> *{margin: 0;padding: 0;} .scroll_top{width ...
分类:
Web程序 时间:
2016-08-28 01:19:12
阅读次数:
176
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>点击回到页面顶部</title> <style type="text/css"> *{margin: 0;padding: 0;} .scroll_top{width:60px;he ...
分类:
Web程序 时间:
2016-08-28 01:16:31
阅读次数:
221