html页面背景位置,html – 将内容与背景图像对齐

我有这张图片,我想制作一个网页:

FsY6H.jpg

包含的HTML和CSS具有它,以便当我在Firefox全屏幕上查看时页面如下所示:

YwjU4.jpg

这正是我想要的,但我无法弄清楚按钮位置和背景图像大小的组合使得当页面调整大小时,按钮缩小并随着’太阳’移动以便’太阳’ ‘仍然有保障.这样做的方法是什么?

@import url(http://fonts.googleapis.com/css?family=Ubuntu+Condensed);

@import url(http://fonts.googleapis.com/css?family=Open+Sans);

body{

position: fixed;

background-image: url("dHbl8SP.jpg");

background-repeat: no-repeat;

background-size: cover;

min-height: 5000px;

background-position: top center;

background-attachment: fixed;

}

.purple{

color: rgb(0,100,200);

border-radius: 50%;

background-color: rgb(55,55);

font-family: "Ubuntu Condensed",sans-serif;

font-size: 17pt;

position:inherit;

top: 202px;

left: 679px;

height: 183px;

width: 183px;

border-style: solid;;

border-color: rgb(15,15);

}

.purple:hover{

top: 198px;

left: 675px;

height: 191px;

width: 191px;

}

.purple:active{

background-color: rgb(45,45);

color: rgb(0,150,150);

}

footer {

position: fixed;

bottom: 0px;

width: 100%;

left: 0px;

heigth: 8px;

align-self: stretch;

background-color: rgba(8,8,.75);

color: rgb(250,250,200);

font-family: "Open Sans",sans-serif;

font-size: 10pt;

text-align: center;

}

KavCloud

Button

Page by Sean Robert Letendre

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值