CSS Style a specific link

后端 未结 4 1762
不思量自难忘°
不思量自难忘° 2021-01-07 09:14

Scenario: I am in the process of creating a website for the company I work for. I need to follow their visual style guide so I\'m creating a CSS file for th

4条回答
  •  萌比男神i
    2021-01-07 09:28

    "Can you give those links CSS classes?"

    So, you could use something like:

    MORE
    

    And thus you could style those with CSS along the lines of:

    a.more-link {
        font-size:11px;
    }
    

    If you can't do that, then I think you could write a little javascript program to go through and change any such links to the font you want. That's kind of minimal to implement, but I think that's an ugly hack, particularly since on slower machines, you may even initially see the default font appear until js runs and shifts things.

提交回复
热议问题