Home  >  Article  >  Web Front-end  >  A question about a:hover_html/css_WEB-ITnose

A question about a:hover_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:08:021160browse

If
a:hover {color: #FF00FF}
is defined in the css tag, then when we move the mouse over the link, the link will change color.

But now the situation is a bit special and requires that css tags cannot be defined and css files cannot be imported.
How can I implement this function? Is it okay if we just do 53fe1914573867ec7b39285b64aa91955db79b134e9f6b82c0b36e0489ee08ed? How to write?


Reply to discussion (solution)

<a href="http://www.baidu.com" onMouseOver="javascript:this.style.color='#FF0000';" onMouseOut="javascript:this.style.color='#0000FF';"> TEST color change </a>


Special situation, all javascript will be filtered Lose. . .
Can it be implemented using css?

In special circumstances, all javascript will be filtered out. . .
Can it be implemented using css?

<a href="http://www.baidu.com" onMouseOver="this.style.color='#FF0000';" onMouseOut="this.style.color='#0000FF';"> TEST color change </a>

53fe1914573867ec7b39285b64aa91955db79b134e9f6b82c0b36e0489ee08ed
Pseudo-classes cannot be written here

Just tested it OnMouseOver and onMouseOut are also filtered out.
Can you write 43c97def4f575aa749af97ff4df43a273499910bf9dac5ae3c52d5ede73834855db79b134e9f6b82c0b36e0489ee08ed16b28748ea4df4d9c2150843fecfba68 like this? Write the pseudo class in the style of the div?

With JS disabled, what else can you do online?

Passing by, UPUPPUPUPUP

How to filter out all

Is there anything else that can be used?

1aa9e5d373740b65a0cc8f0a02150c53
080b747a20f9163200dd0a7d304ba388
a:hover{}
531ac245ce3e4fe3d50054a55f265927
ab946e7546ab66a280dd9c9f9310ecd5

Don’t think about it, it can’t be done unless the platform opens up independent CSS

This is the case on Taobao. It is impossible for ordinary users to change text color through code. They have to use templates specified by the platform

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn