html切换城市页面,HTML5 响应式城市介绍网页模板

CSS

语言:

CSSSCSS

确定

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

* {

margin: 0px;

padding: 0px;

box-sizing: border-box;

}

html,

body {

background: #eee;

font: 14px Candara, Calibri, Segoe, 'Segoe UI', Optima, Arial, sans-serif;

border: none;

width: 100%;

height: 100%;

}

.container {

display: flex;

}

.column {

display: flex;

flex-direction: column;

width: 50%;

}

.tile {

display: flex;

flex: 1;

position: relative;

width: 100%;

}

.tile h1 {

flex-shrink: 0;

display: block;

padding: 20px 0px;

background: #0e4452;

color: #fafafa;

font: 16px 'Audiowide', cursive;

text-transform: uppercase;

text-align: center;

width: 140px;

}

.tile .content {

padding: 20px;

background: #fafafa;

}

.tile .content h2 {

margin-bottom: 8px;

padding-bottom: 8px;

font: 14px 'Audiowide', cursive;

text-transform: uppercase;

border-bottom: 1px #25aa72 solid;

}

.tile .content button {

display: block;

margin: 20px 0px 0px auto;

padding: 8px 20px;

background: #25aa72;

color: #fafafa;

font: 12px 'Audiowide', cursive;

text-transform: uppercase;

border: none;

cursor: pointer;

}

.image-tile {

flex-grow: 0;

/* Calculate the height of the image based on the width of the view port and the height-width ratio of the image */

flex-basis: calc(50vw * 2/3);

height: calc(50vw * 2/3);

}

.image-tile img {

max-width: 100%;

}

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值