鼠标获得焦点、移开, 改变背景色,鼠标形状 ,单击链接到其他页面

1.鼠标获得焦点、移开, 改变背景色,鼠标形状 ,单击链接到其他页面

<tr οnmοuseοver="this.bgColor='#FFFFFF'" οnmοuseοut="this.bgColor='#EEFAFF'" bgcolor="#EEFAFF" style='cursor:hand'

               οnclick="window.location='xxx.htm;">

2. 单价返回按钮返回到上一页

<input type="button" value=" " class="buttonbg"

        onClick="history.back()" style="width: 72px; height: 26px">

&nbsp;

3.单击打开某个页面

<p οnclick="window.location='../index.html'"   align="right">

4.在整个页面中打开新的页面,而不是在frame中打开

<a href="../index.html" target="_top">

5.div绝对定位

<div id="div0" style="position:absolute;left:0px;top:450px;border:1px solid #ccc;
width:100px;height:100px;">
发布了19 篇原创文章 · 获赞 24 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/w90/article/details/4632603