我必须缺少一些简单的东西......我试图创建一个图像设置为背景的html页面。现在,我希望图片占据页面的70%,并与右上角对齐。CSS问题:如何设置背景图像的宽度?
我能够将图像对齐到页面的右上角,它在Chrome中看起来很不错,但在IE中很糟糕。在IE中,图像占据了整个页面 - 这种情感上会破坏页面的外观和感觉...
有什么我失踪了吗?如何限制IE中背景图片的大小?有什么想法吗?下面的代码:
<html>
<head>
<style type="text/css">
body {
margin: 0;
background: transparent url(Background2.png) no-repeat fixed right;
background-position: right top;
font-size:12px;
}
</style>
</head>
<body>
Hello!
</body>