1
今天早上处理一些排版的东西。怎么只有我的.quote :: before工作。 http://codepen.io/samducker/pen/WpoBOB为什么我的::工作之前,而不是我::之后不。帮助css hivemind
编辑:当我调整它的大小时,它开始出现在文本换行时的第一行下面。
<h1 class="quote">“Drink better not more”</h1>
<p><span class="first-letter">A</span> week designed for cocktail lovers, Loves Cocktails is an exciting new 7-day
long festival arriving in Nottingham this April.</p>
.quote {
font-family: $serif-font;
text-align: center;
font-size: 4rem;
padding: 0.3em 0em;
}
.quote::before, .quote::after {
content: "";
position: absolute;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
height: 8px;
width: 32px;
background: #ec3723;
}
p {
max-width: 40em;
margin: auto;
}
.first-letter {
font-size: 3rem;
margin: 20px;
float: left;
}
感谢您的答复我期待下面创建(之后)的文本,以便镜像到它上面的一个小行。不要删除调整大小。 –
明白了,等待将会修复 –
@ SamDucker完成 –