-moz-background-inline-policy on webkit

后端 未结 2 1612
日久生厌
日久生厌 2021-01-20 02:15

Does something like -moz-background-inline-policy exist in Webkit? This property basically gives you the opportunity to specify how should background render for

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-20 02:56

    This non-standard feature isn't implemented in other browsers. You'll need to wrap each line in a span, then apply the background to that span.

    You could use javascript to sort out the spans for you if you needed to have dynamic text, but if it's possible to hardcode it then it shouldn't be too complex.

提交回复
热议问题