Exercises related to JavaScript and HTML

CSDN Q & A 2022-02-13 07:02:44 阅读数:524

exercises related javascript html

Take the answer :

27、label label
42、last append

 <script> var str = "There are surprises dlrow olleh in the tasks you are going to accomplish" var new_str = str.substr(20, 10) var res = str.replace(new_str, "") + new_str.split('').reverse().join('').toLocaleUpperCase(); console.log(res) </script>


<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> a { display: block; border: 2px solid #999; width: 80px; height: 30px; float: left; margin-top: -32px; text-align: center; line-height: 30px; font-size: 16px; } #main { margin-top: 50px; border: 2px solid #999; width: 500px; } ul li { line-height: 50px; font-weight: bold; color: #666; } #gw { display: none; } </style></head><body> <div> <span> <a onclick="change(2)"> The international </a> </span> <span> <a onclick="change(1)"> At home </a> </span> </div> <div id="main"> <div id="gl"> <ul> <li> The first Chinese American woman in Biden's cabinet was hard on China. She once taught English at Sun Yat sen University </li> <li> Yang Jiequn : The United States is not qualified to speak to China </li> <li> Officials of the Chinese delegation gave a background briefing on the China US high level strategic dialogue </li> <li> near 30 For the first time in years, the EU agreed to sanction China on the Xinjiang issue </li> <li> The dialogue between China and the United States in Alaska is likely to go down in history </li> </ul> </div> <div id="gw"> <ul> <li> The youngest vice governor of Guangdong officially took office </li> <li> A female cadre in Sichuan is called ” Leopard female wolf " Popular netizens hot discussion ︰ The name is so domineering </li> <li> The routine of sacked Chief Engineer : Get the map , Look where we go for a walk </li> <li> Xiao Ming Zhang : At present, Hong Kong is a contest between subversion and anti subversion , There is no room for compromise </li> <li> A week's military review on observer network :2000 A new era of billion dollars </li> </ul> </div> </div> <script> function change(val) { if (val == 1) { document.getElementById("gl").style.display = "block"; document.getElementById("gw").style.display = "none"; } else { document.getElementById("gl").style.display = "none"; document.getElementById("gw").style.display = "block"; } } </script></body></html>

Other answers 2:

There is no answer in it ? What don't understand can be put forward ..~

Other answers 3:

All three blanks are
analysis : The wildcard record indicates that all first level domain names are csdn.net All websites are parsed to This IP.
Be careful : This approach does not include csdn.net Parsing , But it includes www.csdn.net Parsing .
Both spaces are label
analysis : The end tag of this tag is label, Match according to the label , The start tag should be label
analysis :submit Type of input Trigger submit form when clicked

Two Orioles are singing green willows , A line of egrets on the blue sky

analysis : height:100px Width Limited ( Forced line wrap ) writing-mode:vertical-rl Set vertical (vertical)- From right to left (rl) Pattern 30.block analysis : Top non block element margin Invalid 32.105 analysis : The space occupying height includes margin and border, It doesn't contain padding. Be careful : Use floating layout and do not use ::after If the pseudo element is cleared, it will lead to height Invalid 33.#ff0000 analysis :element.style Is greater than style label 34.url analysis :./bg.png It's a url36.first-line analysis : See https://developer.mozilla.org/zh-CN/docs/Web/CSS/::first-line36( repeat ).1 analysis : The list is fixed , Therefore, you can manually define and delete elements .nth-last-child(i) Refers to the penultimate i Sub elements , Here is 1(8 Not primes )37.10 analysis : No, z-index( Or it doesn't work ) The default is at the bottom , because 9 The following positions will be .bottom occupy , The minimum can only be 10

Help here first

copyright:author[CSDN Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130702426982.html