图片在窗口中上下左右垂直居中代码
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
div {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
</style>
<title>图片在浏览器窗口中上下左右垂直居中代码</title>
</head>
<body>
<div><img src="###" alt="" /></div>
</body>
</html>
图片在窗口中上下左右垂直居中代码
DIV+CSS排版中新闻列表的制作方法
cursor 属性
IE6和IE7共存方法
@import的写法一般有下列几种
用JS的方法使用列表LI制作的隔行换色
6 个重要的算法是什么?