What does an underscore “_” mean in CSS?

前端 未结 3 509
梦如初夏
梦如初夏 2021-01-31 15:42

I just found the following snippet in a CSS file:

position: fixed;
_position: absolute;

What does this underline mean in front of the second

3条回答
  •  被撕碎了的回忆
    2021-01-31 16:13

    This is a way to give alternative directives to WinIE browsers, since they don't support certain features of the latest CSS definitions. Other browsers will ignore the whole definition (e.g. _position: relative), while WinIE will treat it as position: relative.

提交回复
热议问题