2016年10月3日 星期一

jQuery基本使用筆記

資料夾結構:
home-  
  CSS-      
    style.CSS  
  js-      
    main.js  
  index.html

程式碼
//index.html
 <head> <link rel='stylesheet' type='text/css' href='css/styles.css'> </head>

<body>
  <script src='https://code.jquery.com/jquery-3.1.0.min.js'></script>
  <script src='js/main.js'></script>
</body>


這樣就能使用CSS和JavaScript了。在上述兩個檔各自輸入CSS, JS的程式碼就可以開始了。

沒有留言:

張貼留言