如何使响应式使导航栏在没有引导程序的情况下在一定宽度后折叠成汉堡菜单栏,而是从头开始?

这是小提琴https://jsfiddle.net/6951Lscu/
#myNavbar{
position: fixed;
width: 100%;
background: white;
border-style: solid;
border-width: 0 0 1px 0;
border-color: #E8E8E8;
text-decoration: none;
}
ul{
list-style: none;
}
.medium{
font-family: "Roboto", sans-serif;
font-weight: 500;
}
.right-nav{
padding: 8px 15px;
float: right;
}
div.container{
font-family: Raleway;
margin: 0 auto;
padding: 6px 3em;
text-align: center;
}
div.container a
{
color: #000;
text-decoration: none;
margin: 0px 20px;
padding: 5px 5px;
position: relative;
}Run Code Online (Sandbox Code Playgroud)
<div id="myNavbar">
<div class="container">
<ul>
<li style="float:left"><a href="#home"><img …Run Code Online (Sandbox Code Playgroud)我只是在探索的广泛语言python。我在很大程度上依靠内置的错误检测和谷歌搜索来调试程序。这次我没有运气。感谢您的时间!
我正进入(状态
“第5行的语法无效”
这是我的简单的python代码HANGMAN-game:
import random
def __secretword__():
secret_word = word_list[random.randomint(len(word_list))
return secret_word #THIS IS LINE 5
def __ask__():
ans = input("Would you like to play more? (yes/no): ")
if ans == "yes"
__secretword__()
else:
print(":(")
__secretword__()
word_list = ["nei", "brun", "ja", "smile", "glad", "gal"]
secret_word = secret_word
sw_list = list(secret_word)
guess_lines = ["_"] * len(secret_word)
mistakes = []
lives = 2 * len(secret_word)
print(guess_lines)
user_guess = input("Guess a letter: ")
while(lives != 0)
if user_guess …Run Code Online (Sandbox Code Playgroud)