式样表的三个位置 :
1、内部样式表
<head>
<style type="text/css"><script type=“text/javascript”>h1 {color: red}
h3 {color: blue}
</style>
</head>
2、行内样式
<body>
<a href="lastpage.htm" style="text-decoration:none">LINK!</a>
</body>
3、连接外部样式表
<link rel="stylesheet" type="text/css" href="styles.css" >
//----------------------------------------
表单enctype属性
文件上传表单定义时是要加上 enctype="multipart/form-data" 这个属性的。
但是一个表单里定义了 enctype="multipart/form-data" 这个属性,再提交这个表单,那么在表单接收方就不能取到除FILE 类型以外的所有值。
用 Enctype 属性指定将数据回发到服务器时浏览器使用的编码类型。
下边是说明:
application/x-www-form-urlencoded: 窗体数据被编码为名称/值对。这是标准的编码格式。
multipart/form-data: 窗体数据被编码为一条消息,页上的每个控件对应消息中的一个部分。
text/plain: 窗体数据以纯文本形式进行编码,其中不含任何控件或格式字符。
//-------------------------------
弹出小窗口:
window.open ('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
1、内部样式表
<head>
<style type="text/css"><script type=“text/javascript”>h1 {color: red}
h3 {color: blue}
</style>
</head>
2、行内样式
<body>
<a href="lastpage.htm" style="text-decoration:none">LINK!</a>
</body>
3、连接外部样式表
<link rel="stylesheet" type="text/css" href="styles.css" >
//----------------------------------------
表单enctype属性
文件上传表单定义时是要加上 enctype="multipart/form-data" 这个属性的。
但是一个表单里定义了 enctype="multipart/form-data" 这个属性,再提交这个表单,那么在表单接收方就不能取到除FILE 类型以外的所有值。
用 Enctype 属性指定将数据回发到服务器时浏览器使用的编码类型。
下边是说明:
application/x-www-form-urlencoded: 窗体数据被编码为名称/值对。这是标准的编码格式。
multipart/form-data: 窗体数据被编码为一条消息,页上的每个控件对应消息中的一个部分。
text/plain: 窗体数据以纯文本形式进行编码,其中不含任何控件或格式字符。
//-------------------------------
弹出小窗口:
window.open ('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')