【问题标题】:"E:target" not working in iframe?“E:target”在 iframe 中不起作用?
【发布时间】:2012-04-17 02:28:47
【问题描述】:

在 Chrome 20.0.1115.1 dev-m 中修复此错误


我在 chrome20 中发现了一个错误。 你知道吗?

http://jsdo.it/GeckoTang/x9Lo

HTML(http://jsdo.it/GeckoTang/x9Lo)

<iframe src="http://jsrun.it/GeckoTang/x9Lo"></iframe>

HTML(http://jsrun.it/GeckoTang/x9Lo)

<div id="hoge1">
<div id="hoge2">
    <a href="#hoge1">#hoge1</a>
    <a href="#hoge2">#hoge2</a>
</div>
</div>

CSS

#hoge1:target {background:red;}
#hoge1:target [href$="#hoge1"]{font-weight:bold;}
#hoge2:target {background:gold;}
#hoge2:target [href$="#hoge2"]{font-weight:bold;}
  • 不工作
    • chrome 20.0.1096.1 dev-m
    • 20.0.1104.0 金丝雀
  • 工作
    • Chrome 19.0.1084.24 测试版(Mac)
    • Chrome18
    • IE9
    • Firefox11.0
    • Firefox3.6.12
    • Firefox10.0
    • Firefox Nightly13.0a
    • Safari5.1.5

【问题讨论】:

    标签: css google-chrome target


    【解决方案1】:

    尝试在目标上使用nameid

    【讨论】:

    猜你喜欢
    • 2012-11-27
    • 2021-03-05
    • 2012-12-15
    • 2012-02-22
    • 1970-01-01
    • 1970-01-01
    • 2011-03-07
    • 2014-07-20
    • 1970-01-01
    相关资源
    最近更新 更多