Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1285608
  • 博文数量: 273
  • 博客积分: 5865
  • 博客等级: 准将
  • 技术积分: 3280
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-11 10:01
文章分类

全部博文(273)

文章存档

2015年(33)

2014年(11)

2013年(11)

2012年(136)

2011年(32)

2010年(50)

分类: 系统运维

2012-08-20 17:19:06

1.格式

              标题

                     内容

2. html与htm后缀的区别

a.DOS 不能识别四位的文件名

b.index.html index.htm 不是一个文件,先找前者,不行了再找后者

 

3.编辑器

a.notepad notepad++

b.frontpage

c.dreamweaver

d.zend studio

e.vim emacs

……

 

4.功能示例

 

©

 

< > " ® ©   &

<    >      “                           空格    &

 

 

标签

…(数字越大,字号越小)


(换行)

    • (列表,ul无序列表,ol有序,

      ul属性:disc(圆)、circle(圆圈)、square(方块)

      ol属性:1 A a I i …

      (此标签间空格、换行原样输出)

      超链接:

      _blank(新开窗口)    _self(相同框架)   _parent(父框架)   _top(整页)

      其他窗口名称

      > name

      锚点:

      指向aa的超链接

       

      图片:”这是一张图片(替代文本)"                  

       

      图片的超链接:

       

      5.表格

      定义表头

      valign  垂直对齐方式 top middle bottom baseline

      表格的嵌套  

      会移动的文字 ...

      属性:direction  left right up down

               behavior scrll  slide  alternate

               loop        次数

               scrollamount= 速度

               scrolldelay=延时

      6.多媒体页面

      #=WAV 文件的 URL

      #=循环数


      :设定线宽


      :设定线长


      :设定对齐方式 #=left, right


      :设定线的颜色

       

      称为区域标签,用于将若干相邻的HTML元素组合成一个区域块。通过改变的属性,可以让其中所有的元素消失、显示、更改、移动和一起应用某个属性等。它相当于一个容器标记

       

      作用于

      类似,主要区别就是一个
      独占一行,而会接着排列。

      7.静态网页,动态网页区别

      静态:只是服务器上的数据传过来,服务器端不用数据库,不用执行程序

      动态:后缀名不再是html .htm 而是.php等,要把数据库的数据,处理之后 再发过去

              还可以有注册,等互动

      8.

      如何制作电子邮件链接? 在下列的 HTML 中,哪个可以产生文本框?

      哪个可以产生下拉列表?

      '; tpl += '

      '; tpl += '
      '; tpl += '
      '; tpl += ''; tpl += '
      '; tpl += '
      '; tpl += '
      '; $('.z_move_comment').html(''); $(this).parents('.Blog_right1_8').find('.z_move_comment').html(tpl).show(); }); //引用的评论提交 $('#quota_sbumit').live('click' , function(){ if(isOnLine == '' ) { //showErrorMsg('登录之后才能进行此操作' , '消息提示'); showErrorMsg('操作失败,您需要先登录!', '消息提示', 'http://account.chinaunix.net/login'); return false; } var bid = $(this).attr('bid'); var tid = $(this).attr('tid');//被引用人的id var qid = $(this).attr('cid');//引用的id var url = $(this).attr('url'); var text = $('#rmsg').val(); var tname = $(this).attr('tname'); if(text == '' || text=='文明上网,理性发言...') { showErrorMsg('评论内容不能为空!' , '消息提示'); return false; } else { if(mb_strlen(text) > 1000){ showErrorMsg('评论内容不能超过500个汉字' , '消息提示'); return false; } } $.ajax({ type: "post", url: url , data: {'bid': bid , 'to' : tid , 'qid' : qid , 'text': text , 'tname' : tname }, dataType: 'json', success: function(data){ if(data.code == 1){ var tpl = '
      '; tpl+= ''; tpl+= '
      '; tpl+= '

      ' + data.info.username + '' + data.info.dateline + '

      '; tpl+= '

      ' + data.info.quota.username + ':'+ data.info.quota.content + '

      '; tpl+= '

      ' + data.info.content + '

      回复 |  删除 |  举报
      '; tpl+= ''; tpl+= '
      '; $('#replyList .Blog_right1_8:first').before(tpl); $('.z_move_comment').html('').hide(); } else if(data.code == -1){ //showErrorMsg(data.info , '消息提示'); showErrorMsg('操作失败,您需要先登录!', '消息提示', 'http://account.chinaunix.net/login'); } }, error: function(){//请求出错处理 } }); }); //底部发表评论 $('#submitmsg').click(function(){ if(allowComment == 1) { showErrorMsg('该博文不允许评论' , '消息提示'); return false; } var bid = $(this).attr('bid'); var toid = $(this).attr('toid'); var text = $('#reply').val(); var url = $(this).attr('url'); if(text == '' || text=='文明上网,理性发言...') { showErrorMsg('评论内容不能为空!' , '消息提示'); return false; } else { if(mb_strlen(text) > 1000){ showErrorMsg('评论内容不能超过500个汉字' , '消息提示'); return false; } } $.ajax({ type: "post", url: url , data: {'bid': bid , 'to' : toid ,'text': text}, dataType: 'json', success: function(data){ if(data.code == 1) { var tpl = '
      '; tpl += ''; tpl += '
      '; tpl += '

      ' + data.info.username + '' + data.info.dateline + '

      '; tpl += '

      ' + data.info.content + '

      '; tpl += '
      回复 |  删除 |  举报
      '; tpl += ''; tpl += '
      '; $('.Blog_tit3:first').after(tpl); $('#reply').val('文明上网,理性发言...'); } else if(data.code == -1) { showErrorMsg(data.info , '消息提示'); } }, error: function(){//请求出错处理 } }); }); //底部评论重置 $('#reset_comment').click(function(){ $('#reply').val('文明上网,理性发言...'); }); //取消回复 $('#qx_comment').live('click' , function(){ $('.z_move_comment').html('').hide(); }); $('#rmsg, #reply').live({ focus:function(){ if($(this).val() == '文明上网,理性发言...'){ $(this).val(''); } }, blur:function(){ if($(this).val() == ''){ $(this).val('文明上网,理性发言...'); } } }); //删除留言确认 $('.comment_del_mark').live('click' , function(){ var url = $(this).attr('url'); asyncbox.confirm('删除留言','确认', function(action){ if(action == 'ok') { location.href = url; } }); }); //删除时间确认 $('.del_article_id').click(function(){ var delurl = $(this).attr('delurl'); asyncbox.confirm('删除文章','确认', function(action){ if(action == 'ok') { location.href = delurl; } }); }); /* //字数限制 $('#rmsg, #reply').live('keyup', function(){ var id = $(this).attr('id'); var left = Util.calWbText($(this).val(), 500); var eid = '#errmsg'; if(id == 'reply') eid = '#rerrmsg'; if (left >= 0) $(eid).html('您还可以输入' + left + '字'); else $(eid).html('您已超出' + Math.abs(left) + ''); }); */ //加载表情 $('#face').qqFace({id : 'facebox1', assign : 'reply', path : '/image/qqface/'}); $('#mface').qqFace({id : 'facebox', assign : 'rmsg', path:'/image/qqface/'}); /* $('#class_one_id').change(function(){ alert(123213); var id = parseInt($(this).val() , 10); if(id == 0) return false; $('.hidden_son_class span').each(function( index , dom ){ if( dom.attr('cid') == id ) { } }); }); */ //转载文章 var turn_url = "/blog/viewClassPart.html"; $('#repost_bar').click(function(){ if(isOnLine == '' ) { //showErrorMsg('登录之后才能进行此操作' , '消息提示'); showErrorMsg('操作失败,您需要先登录!', '消息提示', 'http://account.chinaunix.net/login'); return false; } var id = $(this).attr('bid'); asyncbox.open({ id : 'turn_class_thickbox', url : turn_url, title : '转载文章', width : 330, height : 131, scroll : 'no', data : { 'id' : id }, callback : function(action){ if(action == 'close'){ $.cover(false); } } }); }); /* //转发文章 $('#repost_bar').live('click' , function(){ if(isOnLine == '' ) { //showErrorMsg('登录之后才能进行此操作' , '消息提示'); showErrorMsg('操作失败,您需要先登录!', '消息提示', 'http://account.chinaunix.net/login'); return false; } var bid = $(this).attr('bid'); var url = $(this).attr('url'); asyncbox.confirm('转载文章','确认', function(action){ if(action == 'ok'){ $.ajax({ type:"POST", url:url, data: { 'bid' : bid }, dataType: 'json', success:function(msg){ if(msg.error == 0){ showSucceedMsg('转发成功!', '消息提示'); }else if(msg.error == 1){ //location.href = '/index.php?r=site/login'; showErrorMsg('操作失败,您需要先登录!', '消息提示', 'http://account.chinaunix.net/login'); }else{ showErrorMsg(msg.error_content, '消息提示'); } } }); } }); }); */ });