diff options
Diffstat (limited to 'files/es/web/css/background-blend-mode/index.html')
-rw-r--r-- | files/es/web/css/background-blend-mode/index.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/files/es/web/css/background-blend-mode/index.html b/files/es/web/css/background-blend-mode/index.html index 808654f167..772665931b 100644 --- a/files/es/web/css/background-blend-mode/index.html +++ b/files/es/web/css/background-blend-mode/index.html @@ -39,7 +39,6 @@ background-blend-mode: unset; <h2 id="Examples" name="Examples">Ejemplos</h2> -<pre class="brush: html" style="display: none;"><div id="div"></div> <select id="select"> <option>normal</option> <option>multiply</option> @@ -59,14 +58,14 @@ background-blend-mode: unset; <option>luminosity</option> </select></pre> -<pre class="brush: css" style="display: none;">#div { +<pre class="brush: css" class="hidden">#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'),url('https://mdn.mozillademos.org/files/8545/tr.png'); background-blend-mode: screen; }</pre> -<pre class="brush: js" style="display: none;">document.getElementById("select").onchange = function(event) { +<pre class="brush: js" class="hidden">document.getElementById("select").onchange = function(event) { document.getElementById("div").style.backgroundBlendMode = document.getElementById("select").selectedOptions[0].innerHTML; } console.log(document.getElementById('div'));</pre> |