4-20arget 属性和hover

1、target 属性

定义和用法

target 属性规定在何处打开 action URL。

描述
_blank 在新窗口中打开。
_self 默认。在相同的框架中打开。
_parent 在父框架集中打开。
_top 在整个窗口中打开。
framename 在指定的框架中打开。
1 <form action="form_action.asp" method="get" target="_blank">
2   <p>First name: <input type="text" name="fname" /></p>
3   <p>Last name: <input type="text" name="lname" /></p>
4   <input type="submit" value="Submit" />
5 </form>

action  规定当提交表单时向何处发送表单数据

2、

a:link {color:#FF0000;}		/* 未被访问的链接 */
a:visited {color:#00FF00;}	/* 已被访问的链接 */
a:hover {color:#FF00FF;}	/* 鼠标指针移动到链接上 */
a:active {color:#0000FF;}	/* 正在被点击的链接 */

a:hover 必须位于 a:link 和 a:visited 之后

a:active 必须位于 a:hover 之后

猜你喜欢

转载自www.cnblogs.com/yilyan/p/10740123.html