Limited availability
Experimental: ããã¯å®é¨çãªæ©è½ã§ãã
æ¬çªã§ä½¿ç¨ããåã«ãã©ã¦ã¶ã¼äºææ§ä¸è¦§è¡¨ããã§ãã¯ãã¦ãã ããã
append()
㯠StylePropertyMap
ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ã¡ã½ããã§ã渡ããã CSS ã®å¤ããã® StylePropertyMap
ã®æå®ãããããããã£ã§è¿½å ãã¾ãã
property
追å ããã¹ã¿ã¤ã«ç¹æ§ï¼ãã©ã³ããå¹ ãèæ¯è²ãªã©ï¼ã示ãèå¥åã§ãã
value
æå®ãããããããã£ãæã¤ã¹ãå¤ã§ãã
ãªã (undefined
)ã
ãã®ä¾ã§ã¯ãè¦ç´ ã® background-image
ããããã£ã«ãHTMLElement.attributeStyleMap
ã使ç¨ãã¦è¿½å ã®èæ¯ç»åã®å¤ã追å ãã¦ãã¾ãã
// button è¦ç´ ãåå¾
const buttonEl = document.querySelector("button");
// background-image ããããã£ã«å¥ã®å¤ã追å ãã
buttonEl.attributeStyleMap.append(
"background-image",
"linear-gradient(180deg, blue, black",
);
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4