六角
,網頁切版直播班-2021夏季
,`第一週小組任務會議時間:2021/07/07 22:30
參與人員:
Slack ID | 暱稱 |
---|---|
U01UJDLSB1V | 聿凌 |
U021BFC56UA | Carol |
Zora Wang | |
U026R02AFUN | 黑黑 |
U014Y9K0T3P | Tyler2011a |
暱稱 | 類別 | 職業分析 |
---|---|---|
Zora | 外交家 | [競選者] |
GinJack | 外交家 | [主人公] |
聿凌 | 外交家 | [提倡者] |
Carol | 分析家 | [邏輯學家] |
Amber | 調停者 | [INFP-A] |
以下範例程式碼的 .text 高度是多少?(請不要用瀏覽器觀察)
<div class="text">
<img alt="" src="logo.png" height="90" />
</div>
ANS:
[聿凌 回答]選2,語法寫圖片高度90px,但網頁預設會多2-3px,所以選2.90px+2-3px=92-93px。
[Carol 回答] 2. 92~93px
請問 .box 的高度是多少?(請不要用瀏覽器觀察)
<div class="box">
<h1>標題</h1>
<p>段落</p>
<p>段落</p>
<img alt="" src="logo.png" height="90" />
</div>
.box h1{
font-size: 24px;
line-height: 36px;
}
.box p{
font-size: 16px;
line-height: 1.5;
margin-bottom: 24px;
}
.box img{
display: block;
}
ANS:
[zora回答] h1-36px + p-16x1.5x2+24px + img 90px = 198
[聿凌回答] 標題36px + 段落(16px1.5 + 16px1.5 + 24px )+ 圖片 90px = 198
[Carol回答] 36 + (16*1.5) + 24 +90 = 198
請問 .card 的寬高與高度各是多少?(請不要用瀏覽器觀察)
<div class="card"></div>
.card{
width: 50px;
height: 50px;
border-bottom: 3px solid orange;
border-right: 3px solid #000;
background: #000;
padding: 20px;
}
ANS:[GinJack回答]:
height: 50 + padding 上下各推 20px + border-bottom 3px = 93px
width: 50 + padding 左右各推 20px + border-right 3px = 93px
[聿凌回答]:
height: 50px+border底部3px+padding往外推上下20px2=93px
width: 50px+border右邊3px+padding往外推左右20px2=93px
[Carol回答]
寬:width 50px + border-right 3px + 左右padding 202px =93px
高:width 50px + border-bottom 3px + 上下padding 202px =93px
請優化此程式碼,優化重點為:
請優化此程式碼,並將程式碼連結放到 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