ref: ac3f6f558ed463b977e9a83e7b37555720b662ce
parent: 50ad979b5dc99c2499a3b80d3318c2a4c6430b28
author: Philip Silva <[email protected]>
date: Fri Dec 18 06:39:56 EST 2020
css default styles
--- a/style/stylesheets.go
+++ b/style/stylesheets.go
@@ -36,7 +36,11 @@
display: inline;
}
-h1, h2, h3, div, center {
+button, textarea, input, select {
+ display: inline-block;
+}
+
+h1, h2, h3, h4. h5, h6, div, center, frame, frameset, p, ul, menu, pre, dir {
display: block;
}
@@ -227,6 +231,11 @@
}
for _, d := range decls {
s.Declarations[d.Property] = *d
+ }
+ } else if a.Key == "height" || a.Key == "width" {
+ s.Declarations[a.Key] = css.Declaration{
+ Property: a.Key,
+ Value: a.Val+"px",
}
} else if a.Key == "bgcolor" {
s.Declarations["background-color"] = css.Declaration{