答案 0 :(得分:7)
::selection {
background: #ffb7b7;
}
::-moz-selection {
background: #ffb7b7;
}
另外,有关详细信息,请参阅this。
答案 1 :(得分:3)
class SampleBufferView: UIView {
override class func layerClass() -> AnyClass {
return AVSampleBufferDisplayLayer.self
}
func enqueueSampleBuffer(sampleBuffer: CMSampleBuffer!) {
let displayLayer = self.layer as! AVSampleBufferDisplayLayer
displayLayer.enqueueSampleBuffer(sampleBuffer)
}
}

p::selection {
background: #FEAA90;
}
p::-moz-selection {
background: #FEAA90;
}

答案 2 :(得分:1)