作者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
1F:推 dadastyle:谢谢楼上前辈的指点,只是想冒昧请问一下;不知道哪边有 02/24 23:09
2F:→ dadastyle:资料解释tag的各种属性意义(ex:inline),因为在下还不是 02/24 23:10
3F:→ dadastyle:很了解...请您见谅,并且再次谢谢您~ 02/24 23:10