Home > front end >  Big help small sprout new
Big help small sprout new

Time:10-09

CodePudding user response:

The mouse hover color change
Tr: hover {
Background - color: # 9 cf;
}

Form to add a line
Var td1=document. The createElement method (" td ");
Td1. InnerHTML="aaa";
Var td2=document. The createElement method (" td ");
Td2. InnerHTML="BBBB";
Var tr=document. The createElement method (" tr ");
The tr. The appendChild (td1);
The tr. The appendChild (td2);
Document. QuerySelector (" # form id tbody "). The appendChild (tr);

Delete the last line
Var tr=document. QuerySelector (" id # form tbody tr: last - the child ");
Id document. QuerySelector (" # form tbody "). The removeChild (tr);


Form discoloration
Document. QuerySelector (" id "# form.) style. The backgroundColor=" # f99 ";
  • Related