作者femlro (活在自己的世界)
看板Web_Design
標題[問題] 巢狀包覆
時間Sat Jul 11 09:49:02 2015
HTML code
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<title></title>
</head>
<body>
<div>
<ul>
<li><p>Grab me!</p></li>
<li><p>Me, too!</p></li>
</ul>
</div>
<p>Don't grab me!</p>
</body>
</html>
題目是:
Give the paragraphs inside the list item tags a font size of 30px.
我的CSS打
div div li{font-size:30px;}
請問為什麼沒辦法過關,有什麼地方錯了?
請教一下
感謝願意回答的人
謝謝!
--
Every man for himself and God against them all.
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 106.1.185.58
※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1436579345.A.E3E.html
推 pm2001: 先問你div div li是甚麼意思 07/11 10:14
→ femlro: div div p不是可以改屬性嗎 li不行嗎? 07/11 10:22
→ femlro: 我也有試過p 但不行 07/11 10:23
→ PowerKid: div ul li就可以了 妳寫ul 怎麼用div.. 07/11 10:37
→ femlro: 因為這是練習題而已 大感謝 07/11 10:40
→ femlro: 謝謝再謝謝大家的幫助 07/11 10:40
推 hit1205: 原po, PowerKid 的意思是你的結構是 div ul li 07/15 10:20
→ hit1205: 但你樣式裡卻用 div div li 07/15 10:20
→ femlro: 對 所以不會過關@@ 改成他說的就可以了 07/16 08:19