css 发表于 2016-12-08 | | 阅读次数 CSS选中文字样式1234::selection{ background-color: green; color: #fff;} 垂直居中 (兼容IE6)12345678910111213.box{ width: 200px; height: 300px; border: 1px solid #ccc; position: fixed; left: 50%; top: 50%; margin-left: -100px; margin-top: -150px; _position: absoulte; _left: expression(eval(document.documentElement.clientWidth/2+document.document.documentElement.scrollLeft)); _top: expression(eval(document.documentElement.clientHeight/2+document.document.documentElement.scrollTop));} ---------------Enjoy it ? Donate me ! 欣赏此文?求鼓励,求支持! 赏 微信打赏 支付宝打赏