
.div1 a:visited {color: blue} /* 已被访问过的链接 蓝色 */
.div1 a:hover {color: blue}/* 鼠标悬浮在上的链接 蓝色 */
.div1 a:active {color: blue} /* 鼠标点中激活链接 蓝色 */
这个不是用CSS,而是添加 点击事件,如下:<input type="submit" value="提交" onclick="window.location.href='xxx.html'" />
当然你也可采用这个方式:
<a href="xxx.html"><input type="submit" value="提交" /></a>
不过还是建议采用第一种
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)