小编Hun*_*inh的帖子

如何在没有引导的情况下制作响应式导航栏?

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

这是小提琴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)

html css responsive

0
推荐指数
1
解决办法
1万
查看次数

无效的语法指向python中的“ return”

我只是在探索的广泛语言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)

python syntax python-3.x

0
推荐指数
1
解决办法
7782
查看次数

标签 统计

css ×1

html ×1

python ×1

python-3.x ×1

responsive ×1

syntax ×1