浏览器的默认css [英] default css for browsers
问题描述
在哪里可以找到浏览器的默认css?
例如对于< p>,< ul>而言,css的通常渲染是什么?等等特别是
,现在我有兴趣创建类似于
< ul>的样式了。和< li>。当然我可以提出眼球并想出一个CSS,但是想要确保它们是好的。
----------
a saparate问题:今天的浏览器实际上通过内部CSS呈现他们的
演示文稿吗?
Xah
xa*@xahlee.org
a ?? http://xahlee.org/
is there somewhere i can find the default css for browsers?
e.g. what''s the usual rendering in terms of css for <p>, <ul> etc.
in particular, right now i''m interested in creating a style similar to
<ul> and <li>. Of course i can eyeball and come up with a css, but want
to be sure.
----------
a saparate question: do browers today actually render their
presentation thru a internal css?
Xah
xa*@xahlee.org
a?? http://xahlee.org/
推荐答案
" Xah Lee" < xa*@xahlee.org>写道:
"Xah Lee" <xa*@xahlee.org> wrote:
有哪里我可以找到浏览器的默认CSS?
没有这样的事情。它们都使用不同的默认样式。
也就是说,w3c发布了一个样本默认样式表
http://www.w3.org/TR/REC-CSS2/sample.html
eg对于< p>,< ul>而言,css的通常渲染是什么?特别是,现在我有兴趣创造一种类似于
< ul>的样式了。和< li>。
听起来很狡猾。
a saparate问题:今天的浏览器实际上是通过内部CSS呈现他们的演示吗?
is there somewhere i can find the default css for browsers?
No such thing. They all use different default styles.
That said, w3c published a sample default stylesheet
http://www.w3.org/TR/REC-CSS2/sample.html
e.g. what''s the usual rendering in terms of css for <p>, <ul> etc.
in particular, right now i''m interested in creating a style similar to
<ul> and <li>.
Sounds dodgy.
a saparate question: do browers today actually render their
presentation thru a internal css?
现代浏览器通常是。
-
Spartanicus
Modern browsers typically yes.
--
Spartanicus
Spartanicus写道:
Spartanicus wrote:
那就是说,w3c发布了一个样本默认样式表
http://www.w3.org/TR/REC-CSS2/sample.html
That said, w3c published a sample default stylesheet
http://www.w3.org/TR/REC-CSS2/sample.html
根据它,< li>是
li {display:list-item}
但这似乎并没有抓住它。如果在我的html页面中我使用
pl {display:list-item}
它似乎没有任何效果。
目前我效仿李:
pl {margin-top:5px; margin-bottom:5px}
示例页面:
http://xahlee.org/Periodic_dosage_di...nga_pemci.html
Xah
xa*@xahlee.org
a ?? http://xahlee.org/
according to it, <li> is
li {display:list-item}
but that'' doesn''t seems to capture it. If in my html page i use
p.l {display:list-item}
it doesn''t seems to have any effect.
currently i emulate li by:
p.l{margin-top:5px; margin-bottom:5px}
sample page:
http://xahlee.org/Periodic_dosage_di...nga_pemci.html
Xah
xa*@xahlee.org
a?? http://xahlee.org/
2005年9月2日14:31:10 -0700,Xah Lee < xa*@xahlee.org>写道或
引用:
On 2 Sep 2005 14:31:10 -0700, "Xah Lee" <xa*@xahlee.org> wrote or
quoted :
pl {display:list-item}
p.l {display:list-item}
捕获量是p带行李,包括显示器:块。你有
来调整以确保你的选择覆盖。
一个粗略的起点是:
pl {display:list-item!important}
-
Canadian Mind Products,Roedy Green。
http://mindprod.com 再次获取新的Java编程合同。
The catch is p comes with baggage, including a display:block. You have
to fiddle to make sure your choice overrides.
A crude starting point would be:
p.l {display:list-item !important}
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
这篇关于浏览器的默认css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!