Hallo Leute,
ich habe ein kleines Problem.
Ich bastle heute mit Notepad++ herum und möchte das hier zentrieren:
<html>
<head>
<title>You must love me</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="http://ift.tt/1ry3c53; />
<meta name="distribution" content="Global" />
<meta name="copyright" content="JavaScriptBank.com" />
<script type="text/javascript">
flag=1
function f1()
{
alert("Yes. you are right ")
}
function f()
{
if(flag==1)
{
Bn.style.top=90
Bn.style.left=500
flag=2
}
else if(flag==2)
{
Bn.style.top=90
Bn.style.left=50
flag=3
}
else if(flag==3)
{
Bn.style.top=235
Bn.style.left=360
flag=1
}
}
</script>
</head>
<body>
<h1 style="position:absolute; left:220px; top:175px; width:auto; height:210px;">Do you love me?</h1>
<div id="By" style="position:absolute; left:285px; top:235px; width:210px;
height:210px;">
<input type="button" value=" YES " onclick="f1()" />
</div>
<div ID="Bn" style="position:absolute; left:360px; top:235px; width:210px; height:210px;">
<input type="button" value=" NO " onmouseover="f()" />
</div>
</BODY>
</html
Der Effekt taucht auf der linken Seite auf, aber leider nicht genau in der Mitte.
Wir kann ich das machen?
Ich schätze mal ich muss <center> und </center> einsetzen um zu zentrieren aber wo genau?
Danke :)
ich habe ein kleines Problem.
Ich bastle heute mit Notepad++ herum und möchte das hier zentrieren:
<html>
<head>
<title>You must love me</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="http://ift.tt/1ry3c53; />
<meta name="distribution" content="Global" />
<meta name="copyright" content="JavaScriptBank.com" />
<script type="text/javascript">
flag=1
function f1()
{
alert("Yes. you are right ")
}
function f()
{
if(flag==1)
{
Bn.style.top=90
Bn.style.left=500
flag=2
}
else if(flag==2)
{
Bn.style.top=90
Bn.style.left=50
flag=3
}
else if(flag==3)
{
Bn.style.top=235
Bn.style.left=360
flag=1
}
}
</script>
</head>
<body>
<h1 style="position:absolute; left:220px; top:175px; width:auto; height:210px;">Do you love me?</h1>
<div id="By" style="position:absolute; left:285px; top:235px; width:210px;
height:210px;">
<input type="button" value=" YES " onclick="f1()" />
</div>
<div ID="Bn" style="position:absolute; left:360px; top:235px; width:210px; height:210px;">
<input type="button" value=" NO " onmouseover="f()" />
</div>
</BODY>
</html
Der Effekt taucht auf der linken Seite auf, aber leider nicht genau in der Mitte.
Wir kann ich das machen?
Ich schätze mal ich muss <center> und </center> einsetzen um zu zentrieren aber wo genau?
Danke :)
0 commentaires:
Enregistrer un commentaire