在<code>categoryAxis</code>中<a href="#">

时间:2017-12-06 11:30:56

标签: html css highlight

I have a <div> with a section id like this:

<style>
.div1 {
padding: 10px;
background: #888;
background-color: rgba(0,0,0,0.5);
border-radius: 10px;
color: white;
margin-right: 10px;
}
</style>

<section id="test">
<div class="div1">
...
</div></section>

On another page I have a link to this page:

<a href="index.php/page2#test">Click here</a>

It works fine, but what I would like to do is: when I click the link, it should go to the section id and highlight the div or something similar (just an highlight like a blink, so the users know, which "box" it is). Maybe, I should say, I have 3 divs like this side by side, but only the last one has the <section id="test"> so I would like this one to be highlighted.

Thanks

0 个答案:

没有答案