作者othree (OOO)
看板Web_Design
標題Re: [問題] firefox底下是否有許多css語法不被支援?
時間Sat Feb 24 22:44:18 2007
※ 引述《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
推 dadastyle:謝謝樓上前輩的指點,只是想冒昧請問一下;不知道哪邊有 02/24 23:09
→ dadastyle:資料解釋tag的各種屬性意義(ex:inline),因為在下還不是 02/24 23:10
→ dadastyle:很了解...請您見諒,並且再次謝謝您~ 02/24 23:10