IN 操作符
IN 操作符允許我們在 WHERE 子句中規定多個值。
SQL IN 語法:
SELECT column_name(s) FROM table_name WHERE column_name IN (value1,value2,...)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>My JSP 'MyJsp.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> <script type="text/javascript"> function go(){ setTimeout("delayURL()", 5000); clearTimeout(this); } function delayURL() { window.location.href = "test/qb.html"; } </script> </head> <body onload="go()"> <span style="text-indent: 2em; margin-top: 30px;">GO GO GO </span> </body> </html>
|
來自CODE的代碼片
密碼框:<input type= "passwoed" id = "mmk" name="mmk" value="mm" readonly disabled/>
單選按鈕:<input type= "radio" id = "radiol" name="hobby" value="nan" checkbox/>
複選框:<input type= "CheckBox" id = "radiol" name="hobby" value="nan" />
隱藏域:<input type= "hidden" id = "radiol" name="hobby" value="nan"/>
文本域:《textarea》 row
圖片域:<input type= "image" id = "radiol" name="hobby" src = “圖片名”title = “”取名“”alt =“”找不到該圖片“” width=“”30px“” height=“”90px“”/>
文件上傳域:有file的表單只能用post傳送方式
<frameset>標籤的屬性:
cols一列方式分割;
rows以行方式分割;
獨立於html文件,方便修改,同時加快頁面加載的速度,同時也能夠實現同意效果的重用,多張網頁使用同樣的CSS情形下,只需一次加載,減少代碼量。選擇器:
id 選擇器
id 選擇器可以爲標有特定 id 的 HTML 元素指定特定的樣式。
id 選擇器以 "#" 來定義。
下面的兩個 id 選擇器,第一個可以定義元素的顏色爲紅色,第二個定義元素的顏色爲綠色:
#red
{color:red;}#green
{color:green;}
下面的 HTML 代碼中,id 屬性爲 red 的 p 元素顯示爲紅色,而 id 屬性爲 green 的 p 元素顯示爲綠色。
<pid="red"
>這個段落是紅色。</p> <pid="green"
>這個段落是綠色。</p>
在 CSS 中,類選擇器以一個點號顯示:
.center
{text-align: center}
在上面的例子中,所有擁有 center 類的 HTML 元素均爲居中。
在下面的 HTML 代碼中,h1 和 p 元素都有 center 類。這意味着兩者都將遵守 ".center" 選擇器中的規則。
<h1class="center"
> This heading will be center-aligned </h1> <pclass="center"
> This paragraph will also be center-aligned. </p>
CSS 元素選擇器
最常見的 CSS 選擇器是元素選擇器。換句話說,文檔的元素就是最基本的選擇器。
如果設置 HTML 的樣式,選擇器通常將是某個 HTML 元素,比如 p、h1、em、a,甚至可以是 html 本身:
html {color:black;} h1 {color:blue;} h2 {color:silver;}