制作网站琐记

  1. 如何在自定义 js 中引用 jquery?  http://stackoverflow.com/questions/11488208/intellisense-doesnt-work-for-js-in-vs2012
  2. 如何设置父 div 的高度根据子div 的高度自动调节?
    1. Height:auto
    2. Min-height:20px …  http://stackoverflow.com/questions/4075440/dynamic-height-for-div
  3. 如何调整 滚动条的颜色: http://www.certifiedchinesetranslation.com/openaccess/CSS/scrollbars.html
  4. 网页打开msn 聊天窗口方法 msnim:chat?contact=ljzlib1@hotmail.com,要求msn 登录状态
  5. 阻止事件冒泡的方法:
    1. http://www.neoease.com/stoppropagation-and-preventdefault-and-return-false/
    2. http://wenku.baidu.com/view/66dc603043323968011c9229.html
  6. The .ready() method is typically used with an anonymous function:        

$( document ).ready(function() {

// Handler for .ready() called.

});

 

Which is equivalent to calling:        

 

$(function() {

// Handler for .ready() called.

});

 7. 网页嵌入 otf 文件不工作:

font-face 引用自定义字体时,需注意最好把字体文件放在css 文件同目录,使用相对目录要小心。

posted @ 2013-11-30 16:53  ahguo  阅读(124)  评论(0编辑  收藏  举报