我有一个带有参考书目的响应式网站。无论浏览器的宽度如何,我希望文本显示为作品引用页面。
此页面上的出版物:http://www.lajsa.org/news-announcements/new-publications/
第一行下的所有行都应缩进30px。就像这里的图片一样:http://libguides.mjc.edu/MLA/mlaworkscited
我以为我可以这样做:
p { padding-left:30px;}
p::first-line { padding-left: -30px !important;}
或者这个:
p:not(::first-line) { padding-left:30px;}
但它不起作用。
以下是一些示例HTML:
<p>Aizenberg, Edna. <em>On the Edge of the Holocaust: The Shoah in Latin American Literature and Culture</em>. Waltham: Brandeis UP/UP of New England, 2016. 200 pp. 19 illustrations. ISBN: 978-1-61168-856-6.</p>
<p>Aizenberg, Edna. <em>Parricide on the Pampa? A New Study and Translation of Alberto Gerchunoff´s </em>Los gauchos judíos. 2nd edition. Madrid /Frankfurt: Iberoamericana /Vervuert, 2015. 166 pp. ISBN: 9788484898849. Contains updated introduction and bibliography.</p>
<p>Balbuena, Monique Rodrigues. <em>Homeless Tongues: Poetry and Languages of the Sephardic Diaspora</em>. Stanford: Stanford UP, 2016.</p>
<p>Blajberg, Israel. <em>Star of David in the Southern Cross: Memory of Jewish presence in the armed forces of Brazil – from Cabral to Haiti</em>. Resende, RJ: – AHIMTB, Brazilian Military History Academy, 2015. 680 pp. 330 Illustrations. ISBN: 978-85-60811-24-3.</p>
我不能像这里建议的那样在中间添加一个范围:Indenting the 2nd line of a paragraph with CSS因为换行符会根据屏幕宽度而改变。
有什么建议吗?
答案 0 :(得分:3)
p {
padding-left: 30px;
text-indent: -30px;
}
<p>Aizenberg, Edna. <em>On the Edge of the Holocaust: The Shoah in Latin American Literature and Culture</em>. Waltham: Brandeis UP/UP of New England, 2016. 200 pp. 19 illustrations. ISBN: 978-1-61168-856-6.</p>
<p>Aizenberg, Edna. <em>Parricide on the Pampa? A New Study and Translation of Alberto Gerchunoff´s </em>Los gauchos judíos. 2nd edition. Madrid /Frankfurt: Iberoamericana /Vervuert, 2015. 166 pp. ISBN: 9788484898849. Contains updated introduction and bibliography.</p>
<p>Balbuena, Monique Rodrigues. <em>Homeless Tongues: Poetry and Languages of the Sephardic Diaspora</em>. Stanford: Stanford UP, 2016.</p>
<p>Blajberg, Israel. <em>Star of David in the Southern Cross: Memory of Jewish presence in the armed forces of Brazil – from Cabral to Haiti</em>. Resende, RJ: – AHIMTB, Brazilian Military History Academy, 2015. 680 pp. 330 Illustrations. ISBN: 978-85-60811-24-3.</p>