<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="css/reset.css" rel="stylesheet" type="text/css" /> <link href="css/layout.css" rel="stylesheet" type="text/css" /> <title>盒子模型</title> <style> #box { width:200px; height:100px; margin:10px 20px 30px 40px; border:solid 10px red; padding:10px 20px 30px 40px; background-color:green; } #content { width:100%; height:100%; background:blue; } </style> </head> <body> <div id="box"> <div id="content"></div> </div> </body> </html>
2017-10-200个赞
해당 섹션의 강좌:PHP는 학생 정보를 삭제하는 학생 관리 시스템을 개발합니다.
<?php $id=$_GET['id']; $conn= mysqli_connect('localhost','root','root','study'); $sql= "delete from stu where id='$id'"; $result= mysqli_query($conn,$sql); if($result){ echo "<script>alert('删除成功')</script>"; }else{ echo "<script>alert('删除失败')</script>"; } ?>
2017-12-090个赞