Changing HTML from CSS media query

后端 未结 4 1426
不知归路
不知归路 2021-02-04 11:47

I have a situation in which I want to change an HREF in an unordered list in HTML when a CSS media query is true. Specifically I want to change an HREF from calendar.html to ca

4条回答
  •  萌比男神i
    2021-02-04 12:22

    On a related note... You can manipulate HTML using CSS content ... The following taken from Chris Coyier at CSS-tricks.com

    .email-address:before {
    content: "Email address: ";  }
    
    

    And the output would be like:

    • Email address: chriscoyier@gmail.com
    

提交回复
热议问题