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

A question about a:hover_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:08:02
Original
1192 people have browsed it

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 ? 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>
Copy after login


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>
Copy after login


Pseudo-classes cannot be written here

Just tested it OnMouseOver and onMouseOut are also filtered out.
Can you write

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?



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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template