Use QWebElement API to set hint elem attributes.

Fixes #225.
Use QWebElement API to set hint elem style.

See #225.