HTML、sqlserver資料庫和java前七章節的複習(一)
阿新 • • 發佈:2019-01-12
1.HTML的基本結構
<!doctype>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
2.有序列表
<ol><li></li></ol>
3.無序列表
<ul><li></li></ul>
4.寫一個邊框為1的表格
<table border="1"> <tr> <td></td> </tr> </table>
5.插入一張圖片
<img src="圖片地址" >
6.寫一個超連結
<a href="連線地址"></a>
7.分別寫出css的基本選擇器有哪些?語法是什麼
ID選擇器:#p{color:red}
類選擇器:.p{color:red}
標籤選擇器:p{color:red}
8.寫幾個表單(文字框,密碼框,下拉選單,單選按鈕,提交按鈕)
<form action="地址" method="get/post"> <input type="text" name="name"/> <input type="password" name="pass"/> <select> <option></option> </select> <input type="radio" name="sex"/>男 <input type="radio" name="sex"/>女 <input type="submit" vlaue="提交"/> </form>
9.設定字型顏色
p{color:red}
10.設定div的背景顏色
div{background-color:red}
11.設定左浮動
float:left
12.設定一個字型大小為20px
font-size:20px
13.絕對定位、固定定位和相對定位
position:absolute
position:fixed
position:relative
14.分別給兩個表裡面新增資料
insert into emp vlaues('錢三炮','男','2019-1-7',1,'[email protected]') insert into dept(1,'開發部')
15.將編號為1的員工姓名修改為錢三炮
update emp set ename = '錢三炮' where eid = 1
16.刪除錢三炮的記錄
delete from emp where ename = '錢三炮'
17.查詢全部員工
select * from emp
18.查詢每個部門的員工人數
select count(*),did from emp group by did
19.查詢名字中含三炮的人
select * from emp where ename like '%三炮%'
20.查詢電子郵箱為空的員工
select * from emp where email is null