
CSS
E-Token
生活的理想就是为了理想的生活
展开
-
a标签常用到
让超链接访问后和访问前的颜色不同且访问后仍保留hover和active效果 方法: a:link{color:#03c;} a:visited{color:#666;} a:hover{color:#f30;} a:active{color:#c30;} 按L-V-H-A的顺序设置超链接样式即可,可速记为LoVe(喜欢)HAte(讨厌)原创 2015-08-27 11:09:32 · 355 阅读 · 0 评论 -
如何让已知高度的容器在页面中水平垂直居中 两个方法
center /*方法一*/ .box{ width: 500px; height: 400px; border: 1px solid #aaa; position:absolute; left:50%; top:50%; margin: -250px 0 0 -250px; } /*方法二*/ .box{ width: 500px; heig原创 2015-08-27 11:22:43 · 425 阅读 · 0 评论