HTML_Style Class
This class provides the API for accessing an object's CSS (Cascading Style Sheet). HTML_Style
objects are returned by the HTML_Style HTML_Object.style() function. This class inherits the HTML_Object Class.
String HTML_Style.value(name)
This function returns the string value of the CSS (Cascading Style Sheet) attribute with the given name
, or an empty string if there is no element called name
.
When it comes to composite attributes (such as background-color
), Squish adopts the widely-used JavaScript convention of capitalizing the letter following a hyphen and then dropping hyphens. So, for example, to access the background color, we would write something like:
var style = myobject.style(); var bgColor = style.value("backgroundColor");
© 2024 The Qt Company Ltd.
Documentation contributions included herein are the copyrights of
their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners.