[問題] 巢狀包覆

看板Web_Design作者 (活在自己的世界)時間9年前 (2015/07/11 09:49), 編輯推噓2(207)
留言9則, 4人參與, 最新討論串1/1
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

07/11 10:14, , 1F
先問你div div li是甚麼意思
07/11 10:14, 1F

07/11 10:22, , 2F
div div p不是可以改屬性嗎 li不行嗎?
07/11 10:22, 2F

07/11 10:23, , 3F
我也有試過p 但不行
07/11 10:23, 3F

07/11 10:37, , 4F
div ul li就可以了 妳寫ul 怎麼用div..
07/11 10:37, 4F

07/11 10:40, , 5F
因為這是練習題而已 大感謝
07/11 10:40, 5F

07/11 10:40, , 6F
謝謝再謝謝大家的幫助
07/11 10:40, 6F

07/15 10:20, , 7F
原po, PowerKid 的意思是你的結構是 div ul li
07/15 10:20, 7F

07/15 10:20, , 8F
但你樣式裡卻用 div div li
07/15 10:20, 8F

07/16 08:19, , 9F
對 所以不會過關@@ 改成他說的就可以了
07/16 08:19, 9F
文章代碼(AID): #1Le7OHu- (Web_Design)