<div class="profile"> <h2>hello<br> <span>Welcome to my CV website</span> </h2> </div>加一段jQuary
时间: 2023-07-09 12:24:41 浏览: 97
<div class="top">我的网页设计作业</div>
Sure! Here's an example of adding a jQuery script to animate the "hello" text on hover:
```
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('.profile h2').hover(function() {
$(this).find('span').addClass('animated');
}, function() {
$(this).find('span').removeClass('animated');
});
});
</script>
```
Make sure to include the jQuery library in your HTML file before adding this script. Also, you can replace the "animated" class with any CSS class you want to apply the animation.
阅读全文