html中引用名言标签,CSS3 培根名人名言引用全屏居中样式设计

这篇博客详细介绍了如何使用CSS进行网页样式设计,包括字体设置、行高控制、边距处理以及引用引号的特殊样式。通过引入谷歌字体库,增强了文字的视觉效果,并利用CSS的盒模型调整元素内外边距,实现响应式布局。此外,还展示了如何使用特殊字符和颜色来突出文本内容。
摘要由CSDN通过智能技术生成

CSS

语言:

CSSSCSS

确定

@charset "UTF-8";

@import url(https://fonts.googleapis.com/css?family=EB+Garamond|Droid+Serif|Playfair+Display|Open+Sans+Condensed:300);

*,

*:after,

*:before {

box-sizing: border-box;

}

html,

body {

font-family: 'EB Garamond';

font-size: 32px;

line-height: 1.4rem;

height: 100%;

padding: 0.5rem;

text-rendering: optimizeLegibility;

-moz-osx-font-smoothing: auto;

-webkit-font-smoothing: antialiased;

font-smoothing: antialiased;

-webkit-font-kerning: normal;

font-kerning: normal;

color: #1a222f;

background: #f4fff3;

}

p {

line-height: 1.4em;

}

.quote {

position: relative;

letter-spacing: 0.03em;

margin-bottom: 0.5rem;

}

.quote:before {

content: "“";

position: absolute;

left: -0.7em;

}

.quote:after {

content: "”";

margin-right: -1rem;

}

.quote--container {

margin: 4.5rem auto 0;

width: 17em;

border-bottom: 2px dotted #c6d1bf;

padding-bottom: 0.5rem;

}

.quote--highlight {

color: #d24335;

}

.quote--author {

font-family: 'Open Sans Condensed';

font-size: 0.8rem;

text-align: right;

font-weight: 300;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值