Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
devwiki:html [2021/08/28 07:37] – [css file not loading] ying | devwiki:html [2023/01/24 19:08] – [HTML5 Standards] ying | ||
---|---|---|---|
Line 26: | Line 26: | ||
< | < | ||
<meta charset=" | <meta charset=" | ||
+ | <meta name=" | ||
</ | </ | ||
< | < | ||
Line 51: | Line 52: | ||
* 12 or 16 grid system | * 12 or 16 grid system | ||
+ | **Responsive Elements** | ||
+ | |||
+ | * responsive image map: | ||
+ | * image map basic and tool | ||
+ | * https:// | ||
+ | * http:// | ||
+ | * (works) https:// | ||
+ | * https:// | ||
+ | * (works) js method to recalculate map when image resize (need to call when image visible): https:// | ||
+ | * (not sure, not on attemp) instead map, it use generated svg method: https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * (similar js but old) https:// | ||
+ | * https:// | ||
**CSS Pre-processor** | **CSS Pre-processor** | ||
* SASS/ | * SASS/ | ||
Line 192: | Line 207: | ||
} | } | ||
} | } | ||
+ | </ | ||
+ | |||
+ | ===== html select dropdown and remove focus ===== | ||
+ | * problem: when select dropdown, the select focus still stuck on the dropdown list, (when you press arrow key) | ||
+ | * solution: to remove focus after choose, add onchange event and remove its focus <code javascript> | ||
+ | const choice_input = document.querySelector(" | ||
+ | choice_input.onchange = function(event){ | ||
+ | choice_input.blur() // remove focus from this input | ||
+ | } | ||
+ | // also if you have onload function, you can add this to onload to reset last choice when refresh browser | ||
+ | const tmp_choice_input= document.querySelector(" | ||
+ | tmp_choice_input.selectedIndex = " | ||
</ | </ |