CSS open-quote shows 1 quotation mark

后端 未结 4 2153
情话喂你
情话喂你 2021-02-08 14:02

I\'m using the following CSS to add open quotes before a paragraph:

blockquote {
  padding: 22px;
  quotes: \"\\201C\"\"\\201D\"\"\\2018\"\"\\2019\";
  font-size         


        
4条回答
  •  悲哀的现实
    2021-02-08 14:46

    You must close the quotes before open another one.

    Here a workaround: Close quotes, but invisible.

    blockquote {
      padding: 22px;
      quotes: "\201C""\201D""\2018""\2019";
      font-size: 15px;
    }
    blockquote:before {
      color: #111;
      content: open-quote;
      font-size: 4em;
      line-height: 0;
      vertical-align: -0.4em;
    }
    blockquote:after {
      visibility: hidden;
      content: close-quote;
    }

    Lorem ipsum dolor...

    Lorem ipsum dolor...

    Lorem ipsum dolor...

提交回复
热议问题