更简单的方法做h1,h2,h3,h4,h5,h6 [英] simpler way to do do h1,h2,h3,h4,h5,h6

查看:136
本文介绍了更简单的方法做h1,h2,h3,h4,h5,h6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种外卡方式可以同时设置所有标题的样式,或者我有

来执行此操作


h1,h2,h3,h4, h5 {颜色:#123456}


我知道这是一个愚蠢的问题,但它会回避一个IE DOM问题我需要b $ b。


杰夫

Is there a wild card way to style all headings at once or do I have
to do this

h1,h2,h3,h4,h5{color: #123456}

I know it''s a silly question but it would sidestep an IE DOM issue I
have.

Jeff

推荐答案

Jeff写道:
Jeff wrote:

Is有一种外卡方式可以同时为所有标题设置样式,或者我有

这样做


h1,h2,h3,h4,h5 {颜色: #123456}
Is there a wild card way to style all headings at once or do I have
to do this

h1,h2,h3,h4,h5{color: #123456}



你必须这样做。

-

David Dorward
< a rel =nofollowhref =http://dorward.me.uk/target =_ blank> http://dorward.me.uk/
http://blog.dorward.me.uk/

1月29日23:49,Jeff< jeff@spam_me_not.comwrote:
On 29 Jan, 23:49, Jeff <jeff@spam_me_not.comwrote:

我必须这样做吗

h 1,h2,h3,h4,h5 {颜色:#123456}
do I have to do this

h1,h2,h3,h4,h5{color: #123456}



这个_is_简单。你不喜欢它的是_verbosity_,而不是

缺乏简单性。


由于一些很好的理由,CSS确实试图变得简单,但是没有尝试

来避免冗长。如果你真的想要了解这些妥协背后的决定,请阅读Hakon Lie的博士论文。

This _is_ simple. What you don''t like about it is _verbosity_, not
lack of simplicity.

For some very good reasons, CSS does try to be simple, but doesn''t try
to avoid verbosity. If you really want to _understand_ the decisions
behind such compromises, read Hakon Lie''s PhD thesis.


Andy Dingley写道:
Andy Dingley wrote:

1月29日23:49,Jeff< jeff@spam_me_not.comwrote:
On 29 Jan, 23:49, Jeff <jeff@spam_me_not.comwrote:

> do我必须这样做

h1,h2,h3,h4,h5 {颜色:#123456}
>do I have to do this

h1,h2,h3,h4,h5{color: #123456}



这个_is_简单。你不喜欢它的是_verbosity_,而不是

缺乏简单性。


This _is_ simple. What you don''t like about it is _verbosity_, not
lack of simplicity.



实际上我不喜欢的是IE不会理解这个:


StyleSheetReference.addRule(''' h1,h2,h3,h4,h5,h6'',''c olor:red'')


我对于剪切帖子而不标记<我感到非常激动br />
你已经这样做了,因为你剪掉的方式掩盖了帖子

是关于DOM操纵的。


如果您真的对此感兴趣,可以阅读我对Yucca的回复。


Jeff

Actually what I don''t like is that IE does not grok this:

StyleSheetReference.addRule(''h1,h2,h3,h4,h5,h6'',''c olor: red'')

And I''m not too thrilled about snipping posts without marking that
you''ve done that because the way you''ve snipped obscures that the post
was about DOM manipulation.

If you really have any interest in this, you can read my reply to Yucca.

Jeff


>

由于一些非常好的理由,CSS确实试图变得简单,但是没有尝试

来避免冗长。如果你真的想要了解这些妥协背后的决定,请阅读Hakon Lie的博士论文。
>
For some very good reasons, CSS does try to be simple, but doesn''t try
to avoid verbosity. If you really want to _understand_ the decisions
behind such compromises, read Hakon Lie''s PhD thesis.


这篇关于更简单的方法做h1,h2,h3,h4,h5,h6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆