Percentage width for fixed elements?

后端 未结 4 1173
庸人自扰
庸人自扰 2021-01-12 00:53

I have html like this:

...
...
#con
4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-12 01:10

    According to the CSS 2.1 Positioning Scheme spec:

    In the case of handheld, projection, screen, tty, and tv media types, the box is fixed with respect to the viewport...

    This leads me to believe that the 70% you're setting is actually 70% of the viewport.

    As far as making it the same width as the other div, perhaps you could use JavaScript (or specify widths explicitly).

提交回复
热议问题