html怎么显示五线谱,CSS3 响应式乐谱 音乐符号 五线谱

CSS

语言:

CSSSCSS

确定

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

body {

background-color: #e8e5e3;

margin: 4rem;

font-color: rgba(0, 0, 0, 0.9);

font-size: 0;

line-height: .5;

text-align: center;

}

h1 {

font-size: 4rem;

font-family: Playfair Display;

font-weight: 100;

line-height: 1.2;

margin-bottom: 4rem;

}

div.sheetmusic {

display: inline-block;

text-align: initial;

}

section.staff {

clear: both;

}

section.bar {

float: left;

height: 4.1rem;

background-image: -webkit-linear-gradient(rgba(38, 76, 115, 0.5) 1px, transparent 1px);

background-image: linear-gradient(rgba(38, 76, 115, 0.5) 1px, transparent 1px);

background-size: 100% 1rem;

background-origin: content-box;

font-size: 10rem;

width: 20rem;

border-left: 2px solid #000;

border-right: 2px solid #000;

margin-bottom: 4rem;

}

section.bar:first-child {

border-left: 4px solid #000;

}

section.bar:last-child {

border-right: 4px solid #000;

}

.g-clef {

font-size: 10rem;

padding-right: 0;

margin-right: -4rem;

}

span.note {

font-size: 5rem;

margin-right: -3rem;

display: inline-block;

position: relative;

}

span.eighth {

margin-left: 2rem;

}

.lower-c {

bottom: -.5rem;

}

.lower-g {

bottom: 1.5rem;

}

.lower-a {

bottom: 2.3rem;

}

.lower-f {

bottom: 1.2rem;

}

.lower-e {

bottom: .5rem;

}

.f-clef {

font-size: 5rem;

position: relative;

top: -2rem;

}

@media all and (max-width: 800px) {

h1 {

font-size: 3rem;

}

section.bar {

float: none;

}

}

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值