討論時間:7/7(三) 19:30 ~ 21:00
參與成員暱稱 | Slack ID |
---|---|
guang | U017EK6UEGP |
jen | U021BHEU22H |
灰豹 | U02404AG79P |
allen wang | U023BHYG079 |
Minnie | U0222VBJ2EQ |
Pocky Lin | U021L4MJ99T |
Stacey Yuan | U024TDZ652L |
Ed Huang | UTBMZV6F5 |
參與成員暱稱 | 測驗結果 |
---|---|
guang | TODO |
jen | ISFJ-T |
灰豹 | INFP-T |
allen wang | ISFJ-T |
Minnie | ISFJ-T |
Pocky Lin | INFJ-A |
Stacey Yuan | ISFJ-T |
Ed Huang | ENFP-A |
以下範例程式碼的 .text 高度是多少?(請不要用瀏覽器觀察)
HTML
<div class="text">
<img alt="" src="logo.png" height="90" />
</div>
- display: block;
- vertical-align: middle;
- font-size: 0px;
請問 .box 的高度是多少?(請不要用瀏覽器觀察)
HTML
<div class="box">
<h1>標題</h1>
<p>段落</p>
<p>段落</p>
<img alt="" src="logo.png" height="90" />
</div>
CSS
.box h1{
font-size: 24px;
line-height: 36px;
}
.box p{
font-size: 16px;
line-height: 1.5;
margin-bottom: 24px;
}
.box img{
display: block;
}
h1->36
p->24+24
p->24+24
img->90
36+48+48+90=222
請問 .card 的寬高與高度各是多少?(請不要用瀏覽器觀察)
HTML
<div class="card"></div>
CSS
.card{
width: 50px;
height: 50px;
border-bottom: 3px solid orange;
border-right: 3px solid #000;
background: #000;
padding: 20px;
}
width:50+3+20(left)+20(right) = 93
height:50+3+20(up)+20(bottom) = 93
請優化此程式碼,優化重點為:
.wrap{
width: 500px;
margin: 0 auto;
font-size: 20px;
}
請優化此程式碼,並將程式碼連結放到 Codepen 上。優化重點為:
Ans
Jen codepen
彼此討論 pixel perfect kata,你會如何透過 flexbox 來排版?
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
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.
Do you want to remove this version name and description?
Syncing