关于CSS细节集合
来源:互联网 发布:小学英语跟读软件 编辑:程序博客网 时间:2024/05/02 05:47
以后可能会用到,记一下
原址:http://www.iteye.com/topic/1135252
一、当文字与图片在一行,需要将文字与图片底对齐,需要这样写:
二、当文字与图片在一行,需要将文字与图片居中对齐,需要这样写:
三、自动最大化窗口,在 <body> 与 </body> 之间加入:
四、window.opener 实际上就是用window.open打开的窗体的父窗体。
比如在父窗体parentForm里面 通过 window.open(“subForm.html”),那么在subform.html中 window.opener
就代表parentForm,可以通过这种方式设置父窗体的值或者调用js方法。
window.opener.test(); —调用父窗体中的test()方法;
如果window.opener存在,设置parentForm中stockBox的值。
六、刷新页面的方法
Javascript刷新页面的方法:
history.go(0)
location.reload()
location=location
location.assign(location)
document.execCommand(‘Refresh’)
window.navigate(location)
location.replace(location)
document.URL=location.href
自动刷新页面的方法:
页面自动刷新:把<meta http-equiv=”refresh” content=”20″>加入<head>区域中
页面自动跳转:把<meta http-equiv=”refresh” content=”20;url=http://www.wyxg.com”>加入<head>区域中 前端UI分享
js自动刷新页面:
原址:http://www.iteye.com/topic/1135252
一、当文字与图片在一行,需要将文字与图片底对齐,需要这样写:
<li>记住密码<img src="" align="bottom" style="margin-bottom:-4px"/></li>
二、当文字与图片在一行,需要将文字与图片居中对齐,需要这样写:
<li>记住密码<img src="static/img/xyx.jpg" align="middle"/></li>
三、自动最大化窗口,在 <body> 与 </body> 之间加入:
<SCRIPT language="javascript">setTimeout('top.moveTo(0,0)',5000);setTimeout('top.resizeTo(screen.availWidth,screen.availHeight)',5000);</script>
四、window.opener 实际上就是用window.open打开的窗体的父窗体。
比如在父窗体parentForm里面 通过 window.open(“subForm.html”),那么在subform.html中 window.opener
就代表parentForm,可以通过这种方式设置父窗体的值或者调用js方法。
window.opener.test(); —调用父窗体中的test()方法;
如果window.opener存在,设置parentForm中stockBox的值。
if (window.opener && !window.opener.closed){ window.opener.document.parentForm.stockBox.value = symbol;}
六、刷新页面的方法
Javascript刷新页面的方法:
history.go(0)
location.reload()
location=location
location.assign(location)
document.execCommand(‘Refresh’)
window.navigate(location)
location.replace(location)
document.URL=location.href
自动刷新页面的方法:
页面自动刷新:把<meta http-equiv=”refresh” content=”20″>加入<head>区域中
页面自动跳转:把<meta http-equiv=”refresh” content=”20;url=http://www.wyxg.com”>加入<head>区域中 前端UI分享
js自动刷新页面:
<script language="JavaScript">function myrefresh(){ window.location.reload();}setTimeout('myrefresh()',1000); //指定1秒刷新一次</script>
0 0
- 关于CSS细节集合
- CSS大美集(关于细节)
- CSS大美集(关于细节)
- 关于集合List元素的删除细节
- 关于细节
- Java集合实现细节
- 集合其他细节总结
- 集合小细节
- 集合细节(1)
- 集合细节(2)
- 集合细节(3)
- CSS细节--background-image
- css细节很重要!
- css细节巩固
- css布局兼容细节
- css布局细节思考
- css之几个细节
- css细节属性
- 01_Materialdesign_Theme_Style
- CSS实现简单动态渐变闪烁效果
- 解决ListView的smoothScrollToPosition不精确问题
- Okhttp最火的网络请求框架
- cordova插件InAppBrowser在iPhone上显示url和Done、Back/Forward键的问题
- 关于CSS细节集合
- Javascript常用正则表达式集合
- Charles从入门到精通
- 使用ViewDragHelper实现上拉效果
- JQ插件:radiosToSlider
- jsp基础知识
- 上传项目到github简记
- 让View只显示下边框
- shell学习记录