At runtime I will know the client phone's network and so on, but how can I change the background-image
css property?
Because of the compatibility,I cannot use the service worker to intercept the request.
Media queries are not suitable because there are too many options.
Can I use css vars or calc to solve this problem?
:root {
--post-fix: '@q_80'
--url:'http://imgdoc.bce.baidu.com/bce-documentation/BOS/image.jpg'var(--post-fix)
}