What kind of spider has greenish legs and a yellow and black body?

i saw a spider just like that and i squished it (hehehehe)but i dont know what kind of spider it is.