Chrome/webkit not rendering css display change on input:checked + element + element

后端 未结 4 1755
鱼传尺愫
鱼传尺愫 2020-12-15 23:44

Scenario

I have a CSS selector that is supposed to display sub-content when a label is clicked. The selector is along the lines of input:checked + element +

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 00:26

    As mdmullinax states, this is an outstanding bug in chrome.

    This hack worked for me from the link in the accepted answer:

     body { -webkit-animation: bugfix infinite 1s; }
     @-webkit-keyframes bugfix { from { padding: 0; } to { padding: 0; } }
    

提交回复
热议问题