你好,我是css begginer,我的應用程序html頁面有問題。我正在寫應用程序,我想創建登錄視圖,其中登錄窗體出現在語音命令或按鈕點擊後。我有2個問題,我不能集中我的表單(在jsbin這個CSS工作正常:D),我的目標事件(動畫)運行後,頁面準備好後沒有鏈接點擊。這是我的CSS:保證金0自動不起作用,目標在頁面啓動時運行
#przejscie
{
width: 340px;
display: block;
opacity: 0;
max-width: 100%;
margin: 0 auto;
position: relative;
top: 500px;
transition: transform 20s, background 50s;
-o-transition: -o-transform 16s, background 0.5s;
-moz-transition: -moz-transform 0.5s, background 0.5s;
-webkit-transition: -webkit-transform 3s, opacity 2s, background 0.5s;
}
#przejscie:target
{
transform: translate(-200);
-o-transform: scale(1.2);
-moz-transform: scale(1.2);
-webkit-transform: translate(0px,-300px);
opacity: 1;
}
和我的形式:
<html>
<head>
<script src="{% static 'js/artyom.min.js' %}"></script>
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="{% static 'css/animacje.css' %}"/>
</head>
<h1><a href="#przejscie">Welcome register in our application</a></h1>
<div id="przejscie" class="container col-sm-3 srodek col-md-offset-2">
<form method="post" action="/PPProject-web/register" class="form-signin">
<label for="email" class="sr-only">Adres e-mail</label>
<input name="email" class="form-control" id="email" type="email" placeholder="E-mail" required>
<label for="imie" class="sr-only">Imię</label>
<input name="imie" class="form-control" id="imie" placeholder="Imię" required>
<label for="nazwisko" class="sr-only">Adres e-mail</label>
<input name="nazwisko" class="form-control" id="nazwisko" placeholder="Nazwisko" required>
<label for="username" class="sr-only">Nazwa użytkownika</label>
<input name="username" class="form-control" id="username" placeholder="Nazwa użytkownika" required>
<label for="password" class="sr-only">Adres e-mail</label>
<input name="password" type="password" class="form-control" id="password" placeholder="Hasło" required>
<button class="btn btn-lg btn-primary btn-block" type="submit">Zarejestruj się</button>
</form>
</div>
</html>
確定目標工作正常,但仍不能居中這個div。
它有它,但現在它不改變幹啥 – Max