摘要: 1 文档流(position):最前方显示 relative还占着原来位置,absolute不占了2 javascript语言基础 Dom文档对象模型 (1)javascript是一种脚本语言(脚本:一条条文字命令。执行时由系统的解释器 将其一条条的翻译成机器可识别的指令) (2)html只描述网页长相,没有计算判断能力,javascript是一种在客户端执行简 单运算判断的脚本语言 (3)跨平台性 3 代码放在<script>标签中,script可放在<head><body>中的任意位置 代码执行:从上到下 引用的外部js的内部不能有代码 大小写敏感,严格 阅读全文
posted @ 2012-07-24 07:47 zxp19880910 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Meta1、div span 2、三种样式表 内联样式(行内样式) 嵌入样式 外部样式就近原则 3、常见样式 复合样式background border css单位 % px em background-color color border-style border-width border-color display:none、block块、inline内嵌 cursor list-style-type:none float clear 清除浮动 margin 间距 padding 填充 position 相对 绝对 固定 帮助 4、样式选择器 标签选择器 input 类选择器 .class 阅读全文
posted @ 2012-07-19 23:17 zxp19880910 阅读(177) 评论(0) 推荐(0) 编辑
摘要: HTML 基础 www.55.la 网站美工素材网 指定网页编码:<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />浏览器:输入网址点击链接后,向服务器请求页面, 服务器将页面编译解析出来并将HTML JS CSS等内容返回给浏览器 展现在用户面前的是一个页面 2.浏览器的兼容性问题:开发注意 3.HTML和XML的联系 , 区别: 书写规范,标签必须前后封闭,属性值带引号"" 4.HTML的注释: <!--注释内容--> 5.敏感字符 阅读全文
posted @ 2012-07-19 23:16 zxp19880910 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 1、html基本结构 <html> <head> <title>我的第一个网页</title> </head> <body bgcolor="red" background="bg.jpg"> </body> </html> 2、文本相关标签 <H1> - <H6> <font> color size face <p> align <br> <center> <b> <i 阅读全文
posted @ 2012-07-19 23:15 zxp19880910 阅读(152) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SqlClient; using System.Data;namespace MySqlHelper { public class Class1 { static string strconn = System.Configuration.ConfigurationManager.ConnectionStrings["sql"].ConnectionString; // 阅读全文
posted @ 2012-07-19 23:07 zxp19880910 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1.//弹出对话框.点击转向指定页面 Response.Write("<script>window.alert('该会员没有提交申请,请重新提交!')</script>"); Response.Write("<script>window.location ='http://www.51aspx.com/bizpulic/upmeb.aspx'</script>"); 2.//弹出对话框 Response.Write("<script language=' 阅读全文
posted @ 2012-07-16 22:09 zxp19880910 阅读(123) 评论(0) 推荐(0) 编辑
摘要: declare @age int set @age=20 select @age select @age=age from T_Person where Id=2print @ageselect @@VERSIONselect @@error select @@MAX_CONNECTIONS--可以创建的同时连接的最大数目 select @@SERVERNAMEdeclare @age int set @age=21 if(@age>18) begin select '成年' end else begin select '未成年' enddeclare @ 阅读全文
posted @ 2012-07-16 22:08 zxp19880910 阅读(129) 评论(0) 推荐(0) 编辑
摘要: --针对班级表的新增操作触发器 alter TRIGGER tg_Class ON Class after-- after(操作完成后才调用此触发器) | instead of(操作完成前调用此触发器) INSERT--UPDATE|INSERT|DELETE AS begin --触发器代码 insert into classbackup select * from inserted --select * into classbackup from inserted --select * from inserted--保存了引发新增触发器的新增数据,只能在触发器中访问 end-------. 阅读全文
posted @ 2012-07-16 22:06 zxp19880910 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 一、SQL指令一般查找 select store from store_information 去重复查找distinct select distinct store_name from store_information 选择性抓取 select store_name,date from store_information where sales>1000 用法and,or select store_name from store_information where sales>1000 or (sales<500 and sales>275) 用法in (放置事先已 阅读全文
posted @ 2012-07-16 22:04 zxp19880910 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1.switch case 值1 then '显示1' case 值2 then '显示2' end 2.if-else if case when 关于字段的表达式 then 显示 when 关于字段的表达式 then 显示 else 显示什么 end 3.子查询 1)将子查询写出来,然后用括号括起来 2)写外查询,写条件,并将子查询连同括号一并当做一个值使用4.多值查询 就是内部查询(用括号括起来的查询)可以返回一列数据 在外部查询中使用in即可 5.表连接(交叉连接,笛卡尔积) create table tb1Num1 ( num int ); create 阅读全文
posted @ 2012-07-16 21:58 zxp19880910 阅读(141) 评论(0) 推荐(0) 编辑