Re: [問題] firefox底下是否有許多css語法不被支援?

看板Web_Design作者 (OOO)時間19年前 (2007/02/24 22:44), 編輯推噓1(102)
留言3則, 1人參與, 最新討論串3/4 (看更多)
※ 引述《dadastyle (雨天的海豚.)》之銘言: : 剛才去了一下W3C的教學網站 : 看到了以下的例子 : ======================== : <html> : <head> : <style type="text/css"> : p {text-indent: 1cm} : </style> : </head> : <body> : <p> : This is some text in a paragraph : This is some text in a paragraph : This is some text in a paragraph : This is some text in a paragraph : This is some text in a paragraph : This is some text in a paragraph : </p> : </body> : </html> : ========================== : 然而我仍不明白的是:這是否表示text-indent:只能配合p(或<p>)使用呢? : 如果想要和span使用是否真的就毫無辦法? http://www.w3.org/TR/CSS21/text.html#propdef-text-indent text-indent只能套用在block-level elements, table cells and inline blocks span標籤則是inline屬性 一定要給他用就是還要加上display: block; -- 24小時營業並附有廁所的吃到飽餐廳 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.118.5.39

02/24 23:09, , 1F
謝謝樓上前輩的指點,只是想冒昧請問一下;不知道哪邊有
02/24 23:09, 1F

02/24 23:10, , 2F
資料解釋tag的各種屬性意義(ex:inline),因為在下還不是
02/24 23:10, 2F

02/24 23:10, , 3F
很了解...請您見諒,並且再次謝謝您~
02/24 23:10, 3F
文章代碼(AID): #15u4z4fh (Web_Design)
討論串 (同標題文章)
文章代碼(AID): #15u4z4fh (Web_Design)