Re: [問題] firefox底下是否有許多css語法不被支援?
※ 引述《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
02/24 23:10, 2F
→
02/24 23:10, , 3F
02/24 23:10, 3F
討論串 (同標題文章)