我在这里有一个问题,我想把文本#top_page h1居中,但它不起作用,我不知道为什么.谁能提出一些想法?我尝试了一切,但文字对齐:中心; 和浮动:右或左也不起作用.
我搜索谷歌寻求帮助,并查看堆栈溢出相同的问题,但没有一个解决问题,所以我要求你们帮忙.
body {
background: url(img/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
display: inline-block;
font-family: 'Cabin', sans-serif;
}
a {
text-decoration: none;
color: black;
font-family: 'Cabin', sans-serif;
}
li {
float: right;
margin-top: 3px;
margin-right: 50px;
color: white;
font-family: 'Cabin', sans-serif;
font-size: 15px;
}
header {
display: block;
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 50px;
background: white;
font-family: 'Cabin', sans-serif;
z-index: 999999;
}
a:hover {
color: crimson;
font-family: 'Cabin', …Run Code Online (Sandbox Code Playgroud) 我想编写一个程序来编码你输入控制台的单词,如下所示:
如果您编写A例如它将被替换为Z或您键入T并获得U.
例:
A --> Z
T --> U
H --> F
Run Code Online (Sandbox Code Playgroud)
如果有可能,您能告诉我如何更改您在控制台中输入的单词吗?
仍然需要帮助无法弄清楚该怎么做!