HexSlicing2021.Team13
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # 第五週|課程直播|切版班 by Sz ###### tags: `Sz` `第五週` `直播筆記` `2021夏季切版班` [【總】小組任務|2021夏季切版班 Team13](/GrA9x5TMQoGuIhR8xF7eyg) ## 行程 ![](https://i.imgur.com/B0n9AhI.png) ## 校長批改記錄 [洧杰老師批改眼鏡官網 SCSS 評論](https://hackmd.io/48BTVPQVR_y4jq2E0PFHXQ?view) ## input ```htmlembedded= <input type="text"> ``` ```htmlembedded= <input type="submit" value="表單送出"> ``` ### type 限制輸入內容類型 ``` // 例如 date, tel, number ``` #### date 不建議 格式、時區不一樣,通常會用套件 例如 datepicker (jQuery) ### name 20:17的部份重聽 後端都是看 name,在網址上也會顯示 ### value ```htmlembedded= <input value="ddd" disabled> <!-- readonly 也可以,比較少用 --> ``` 已經輸入的內容不給改 ## form ```htmlembedded= <form action="/index.html" method="post"> ``` ### action 資料傳到哪,例如資料庫 ### method 傳輸方式 post, get ## label ```htmlembedded= <label for="myName">姓名</label> <input type="text" id="myName"> ``` 按在label範圍就可以直接 focus 在 該 input 可以直接輸入 ## 統整 form 包起來 要記得寫 name 後端傳輸用重要 ## 問答 想要問submit的input跟使用button標籤的差別 >建議用 input 老師請問每一個label input外面會建議包一個div嗎? <div> label input </div> >good >不包p 想問get和post的差別是要看後端需要哪一種嗎? >傳資料給後端 post,https 也需要,才不會裸奔 >get 就是裸奔 >GET 就像明信片,大家都可以看到你的信的內容 >POST 就像寄信放信封一樣,只有收件者能看到你的內容 哪個最細心阿 >金流網站最細心 >綠界藍心 >金流御三家 - 紅綠藍 請問老師,為什麼 selcet 不是 name 的值 會傳到後端? >name對應的 value 請問input type=“button”和submit差在哪呢 > button 在有 JS 客製化 event 時用 > submit 就會送出了 Submit 可以搭配驗證嗎 >可 >html form variation ```htmlembedded= <input name="111" required> ``` >必填欄位 >其實很少用,通常會刻其他樣式 ## select ![](https://i.imgur.com/MlRfkJV.png) 傳給後端的資料看 value 點選的地方可以改 但下拉選單改不動 手機版的內建改不動 ## checkbox 也很難改,隱藏按鈕還是可以改,但很難改,還有不同載具的差別 隱藏 checkbox 按鈕 然後放一個div 在旁邊設定圖片 ## 改樣式 改得動電腦版也改不動手機原生 ## 獎品與加碼內容 加碼課程 徽章:四周+小組四周 直播菁英團 彩蛋課程 https://courses.hexschool.com/p/43737a ![](https://i.imgur.com/auhf9gL.png) ## reset 與 normalize 看配合的設計師 ## base 全站設定 整個網站都要套用的設定 bs 叫做 reboot base 的裡面是只有對 html 標籤設定嗎,還是也會有寫在 class 上的樣式 ```htmlembedded= // _base.scss h2, .h2 { // 樣式樣式 } ``` 也有這樣的寫法,這樣 .h2 也可以套用到 p 之類的標籤上 ### 範例 ![](https://i.imgur.com/Euh57c5.png) 勉強可以,建議到 layout ![](https://i.imgur.com/zrCtYbi.png) 放 base 比較好,reset 也可 reset 還是定義為瀏覽器樣式清空 ## grid .container 放這 ## utilites ### 問 但這樣在做RWD的時候會比較不好修改嗎? RWD的時後,mb不是5的話,怎麼辦? > bs都會給你答案!!! 為了不寫重複的 css BS下載後 丟進自己的STYLE就可以開始用了嗎? >yes,但通常會想要客製化XD ## component 不會以位置名稱來命名 ### card 的樣式要自己寫可以特別拿出來問老師 card樣式+子樣式 ## bs form 將 a 跟 input[type="submit"]的樣式統一了,好厲害 下班比較重要 ## modal https://bootstrap5.hexschool.com/docs/5.0/components/modal/#live-demo ```htmlembedded= <!-- Button trigger modal --> <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal"> Launch demo modal </button> <!-- Modal --> <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Modal title</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> ... </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Save changes</button> </div> </div> </div> </div> ``` ## helper mixin 圖片取代文字 一連串記不起來的util mixin 漸漸被 util 取代掉了 ## 作業精力分配 可以繼續做 3-4周 第五週可以放一放 6,8才是主力~ ![](https://i.imgur.com/MnvdQXX.png)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully