回复 9楼kangqy的帖子
你好,请尝试一下代码:
- function Button1_onclick() {
- $("#sprdResult_viewport td").css({
- "border-left-width": "1px",
- "border-left-style": "solid",
- "border-top-style": "solid",
- "border-top-width": "1px",
- "border-color": "red"
- });
- $("#sprdResult_viewport tr:last td").css({
- "border-bottom-width": "1px",
- "border-bottom-style": "solid",
- "border-color": "red"
- });
- $("#sprdResult_viewport tr td:nth-child(4)").css({
- "border-right-width": "1px",
- "border-right-style": "solid",
- "border-color": "red"
- });
- $("#sprdResult_viewport tr td:nth-child(1)").css({
- "border-left-width": "0px",
- "border-top-width": "0px",
- "border-color": "red"
- });
复制代码
效果图:
|