html随机选择,HTML5 午餐随机选择(碰运气)小应用

CSS

语言:

CSSSCSS

确定

@import url(https://fonts.googleapis.com/css?family=Old+Standard+TT);

@import url(https://fonts.googleapis.com/css?family=Lato);

body {

font-size: 20px;

background-color: #f4f1e6;

text-align: center;

color: #343b45;

font-family: 'Old Standard TT', serif;

height: 100%;

line-height: 1.675;

}

@media (min-width: 65em) {

body {

font-size: 25px;

}

}

h1 {

background: #f4f1e6;

color: orangered;

font-size: 1.75em;

line-height: 1.2;

margin-top: 1.33875em;

margin: 0 auto;

position: relative;

top: -0.45em;

width: 95%;

z-index: 9;

}

@media (min-width: 65em) {

h1 {

font-size: 2.8em;

width: 70%;

}

}

h2 {

font-family: 'Lato', sans-serif;

color: orangered;

font-size: 1.25em;

letter-spacing: 0.1em;

line-height: 1.575;

margin: 0 0 0.75em 0;

}

h2 sup {

font-size: 70%;

text-decoration: underline;

vertical-align: top;

}

@media (min-width: 65em) {

h2 {

font-size: 1.75em;

}

}

p {

margin: 0.53875em 0;

font-size: 1.25em;

}

.wrap {

padding: 2em 1em;

margin: 0 auto;

max-width: 35em;

font-size: 1.2rem;

}

@media (max-width: 65em) {

.wrap {

max-width: 100%;

}

}

.button--getlunch {

background-color: orangered;

border: 0;

color: white;

font-family: 'Lato', sans-serif;

font-size: 1em;

padding: 0.75em 0.5em;

line-height: 1;

letter-spacing: 0.1em;

text-align: center;

text-decoration: none;

text-transform: uppercase;

white-space: nowrap;

}

@media (max-width: 65em) {

.button--getlunch {

padding: 0.75em 1em;

}

}

.lunch-wrap {

position: relative;

max-width: 100%;

border: 2px solid #343b45;

border-top: none;

text-align: center;

margin: 60px auto;

padding: 0 2em 1em;

}

.lunch-wrap:before,

.lunch-wrap:after {

content: "";

position: absolute;

height: 2px;

width: 25%;

background-color: #333;

top: 0;

}

@media (max-width: 65em) {

.lunch-wrap:before,

.lunch-wrap:after {

width: 15%;

}

}

.lunch-wrap:after {

right: 0;

}

.lunch-wrap:before {

left: 0;

}

@media (max-width: 65em) {

.lunch-wrap {

padding: 0 1em 1em;

}

}

.lunch-wrap p {

font-size: 1.25em;

}

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值