search

Home  >  Q&A  >  body text

css - h5页面,logo尺寸370x60,宽度小于370的屏幕怎么缩放合适?

如标题,如果设计一版的话,有好的解决办法吗?

巴扎黑巴扎黑2781 days ago1729

reply all(4)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 13:54:16

    max-width: 100%;

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 13:54:16

    Set the width of the logo image to 100%, regardless of the height

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 13:54:16

    Set the maximum width on a large screen, that is, max-width. On a small screen, set the percentage and adaptive scaling.

    reply
    0
  • 迷茫

    迷茫2017-04-17 13:54:16

    1. When the width is less than 370px, set width: 100%
    2. When the width is greater than 370px:

    1. If the maximum width of the logo is 370, then max-width:370px

    2. If the logo needs to occupy the full screen, width: 100%

    reply
    0
  • Cancelreply