This tutorial introduces how to use js to get styles in the inner links and links. If you are interested, refer to the following. I hope this will help you.
The Code is as follows:
Var head = document. getElementById ("box ");
// Alert (head. style. background)
// Alert (head.style.css Float | head. style. styleFloat) // different float values can be obtained.
// Head. style. fontSize = "30px"
Head. style. color = "# f00 ";
// (Typeof head.style.css Float! = "Undefined ")? Head.style.css Float = "right": head. style. styleFloat = "right" cross-browser float setting
// Var style = (window. getComputedStyle? Window. getComputedStyle (head, null): null) | head. currentStyle; cross-browser acquisition of calculated styles
// Alert (style. fontSize)
// You can obtain the inner and link.
// Because the calculated style will reside in the computing style of the browser, you can obtain it.