-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
完成 week6 作業 #8
完成 week6 作業 #8
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
寫的很好耶!從漢堡選單、視差滾動、注意 Accessibility 和簡答題的回答等等,都可以看到你對這次作業的用心,也很開心你對 CSS 越來越上手了,總之這次作業我是推爆
<picture> | ||
<source srcset="src/img/p-1.webp" type="image/webp" /> | ||
<source srcset="src/img/p-1.png" type="image/png" /> | ||
<img src="./src/img/[email protected]" alt="蘿莉控遺像" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這個 alt
😂
</head> | ||
``` | ||
|
||
疑問:聽聞 `<a>` 如果是 `target="_blank"` 要加上 `rel=noopener noreferrer` 來防止惡意導向,不知道這個屬性是不是可以直接加在 `<base>` 上... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
查了一下資料,從 MDN 看來目前是沒有這個 attribute,不過的確是有看到討論 rel=noopener for form and base elements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看起來好像開放用在<base>
上會增加混亂,需要的時候在使用於<a>
就好。
|
||
#### ✅ P2 你熟悉 CSS selector,可以輕鬆選到想選到的元素 | ||
|
||
有越來越輕鬆的感覺沒錯 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
讚啦
好猛的作業啊啊啊,朝聖 🙇♀️ |
這週作業完成後,對自己 CSS 能力有自信多了!擺脫以前想做到,但都要蘑菇非常久才做出來,而且還不一定知道自己在幹什麼的狀況。基本的選擇器、屬性語法可以自然打出,跟以前相比真的少了很多查閱的煩躁時間,謝謝自己的努力 😂
這次嘗試了一些東西:
aria-labelledby
屬性,替被我客製的表單輸入框維持 Accessibility 分數backgraound-position: fixed
和直接使用<img>
之間游移,最後使用<img>
因為可以用<picture>
指定載入的圖片格式或大小,在手機上也有視差效果。咬一口廚房預覽
新拖延運動預覽
謝謝 Huli 和助教的批改!