require_once "./php/DB/DAOMySQLi.class.php";
$db = DAOMySQLi::getInstance();
$id = 0;
if(isset($_GET['id'])){
$id = $_GET['id'];
}
?>
Document.wrap-card {
position: relative;
box-shadow: 0px 0px 0px #818181;
transition: all 0.2s ease 0s;
-webkit-transform: translateY(0px) translateX(0px);
}
.wrap-card:before,
.wrap-card:after {
display: inline-block;
position: absolute;
content: " ";
width: 100%;
height: 3px;
background: #818181;
-webkit-transform: scaleX(0);
transition: all 0.2s ease;
}
.wrap-card:before {
top: 0;
left: 0;
-webkit-transform-origin: 0 0;
}
.wrap-card:after {
bottom: 0;
left: 0;
-webkit-transform-origin: 100% 0;
}
.wrap-card:hover {
box-shadow: 20px 20px 0px #818181;
-webkit-transform: translateY(-10px) translateX(-10px);
transition: all 0.2s ease 0.4s;
}
.wrap-card:hover:after,
.wrap-card:hover:before {
-webkit-transform: scaleX(1);
}
.card {
background: #ffffff;
padding: 30px 35px 45px 35px;
margin-bottom: 30px;
border: 1px solid rgba(129, 129, 129, 0.1);
}
p{
letter-spacing: 0.5px;
font-size: 13px;
line-height: 34px;
font-weight: 300;
}
$sql = "select * from article where id = $id";
$art = $db -> getRow($sql);
?>
一键复制
编辑
Web IDE
原始数据
按行查看
历史