jQuery实现的点击按钮改变样式功能示例 本文实例讲述了jQuery实现的点击按钮改变样式功能。分享给大家供大家参考,具体如下: 1. css代码:index4.css @CHARSET "UTF-8"; .sd{ font-weight: bold; color: black; background: red; } 2. jsp代码:index4.jsp <%@ page language="java" import="java.util.*"pageEncoding="UTF-8"%> <% Stringpath = request.getContextPath(); StringbasePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>