【问题标题】:HTML CSS Zoom in / Zoom Out issueHTML CSS 放大/缩小问题
【发布时间】:2013-02-01 16:14:44
【问题描述】:

在 Chrome 浏览器中放大和缩小我的页面 Link of my page 时,背景会变形,页面看起来像这样 Look of page after zooming in Chrome。 可以在代码中进行哪些更改以修复它以在不扭曲背景图形的情况下放大 Chrome 浏览器?

这是我的代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Page Under Construction</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">

<style type="text/css">

body {
background:#d7df29 url('1.jpg') center center no-repeat;
width: 100%;
height:  100%;
}

html, body {
width: 100%;
height: 100%;
    }


</style>

</head>

<body>

</body>

</html>

非常感谢!

【问题讨论】:

标签: html css image background background-image


【解决方案1】:

这句话说,我们还不能帮助你......

background:#d7df29 url('1.jpg') center center no-repeat;

我刚读到你的评论,你有一张图片,所以放大/缩小会失真......最好使用 CSS 来避免这种失真......

【讨论】:

  • 你能告诉我它是怎么做的吗?因为我不知道而且我在 HTML CSS 方面没有那么先进
  • 尝试谷歌搜索“css create under construction page”
  • 见stackoverflow.com/faq,如果我的回答能帮助您解决问题,您可以接受:P
猜你喜欢
  • 2021-08-22
  • 1970-01-01
  • 1970-01-01
  • 2012-11-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-08-18
  • 1970-01-01
相关资源
最近更新 更多