26. oktober 2006 - 13:35Der er
50 kommentarer og 1 løsning
forkert indrykning ved minimering af skærmbillede
Hej. På mit site www.KomsiKomsa.dk har jeg et problem i toppen og bunden når man minimerer skærmbiledet.. margenen i top og bund "rykker" ind over det midterste på siden. Ved ikke hvad der er galt ?? Nogen der kan hjælpe..
okay har indsat doc type nu, men hvad med denne melding : Line 11, column 172: document type does not allow element "META" here . ...dating kæreste dans sport ven bytur" /> The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
det virker ikke når jeg fjerner '+' prøv at se scriptet her...
<Script language="JavaScript" type="text/javascript" > // Script Source: CodeLifter.com // Copyright 2003 // Do not remove this notice.
// SETUPS: // ===============================
// Set the horizontal and vertical position for the popup
PositionX = 100; PositionY = 50;
// Set these value approximately 20 pixels greater than the // size of the largest image to be used (needed for Netscape)
defaultWidth = 500; defaultHeight = 500;
// Set autoclose true to have the window close automatically // Set autoclose false to allow multiple popup windows
var AutoClose = true;
// Do not edit below this line... // ================================ if (parseInt(navigator.appVersion.charAt(0))>=4){ var isNN=(navigator.appName=="Netscape")?1:0; var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;} var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY; var optIE='scrollbars=yes,width=150,height=100,left='+PositionX+',top='+PositionY; function popImage(imageURL,imageTitle){ if (isNN){imgWin=window.open('about:blank','',optNN);} if (isIE){imgWin=window.open('about:blank','',optIE);} with (imgWin.document){ writeln('<html><head><title>Loading...<\/title><style>body{margin:0px;}<\/style>');writeln('<sc'+'ript>'); writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){'); writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}'); writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);'); writeln('width=100-(document.body.clientWidth-document.images[0].width);'); writeln('height=100-(document.body.clientHeight-document.images[0].height);'); writeln('window.resizeTo(width,height);}');writeln('if (isNN){'); writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}'); writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>'); if (!AutoClose) writeln('</head><body bgcolor=ffffff scroll="no" onload="reSizeToImage();doTitle();self.focus()">') else writeln('</head><body bgcolor=ffffff scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">'); writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>'); close(); }} </script>
Iøvrigt er mit margen problem ikke løst endnu.. det ser stadig "forkert" ud når man minimerer browser vinduet... Det er kommet efter at jeg har tilføjet en celle i hver side med width="13% Problemet var der nemlig ikke før...
Første fejl er denne linie: <form action = soeger_like2_ny.php method = post> Det skal være: <form action="soeger_like2_ny.php" method="post">
og prøv ligeledes at flyt rundt på disse 2 linier: <form action = soeger_like2_ny.php method = post> <table border="0" cellspacing="0" cellpadding="0" width="100%">
det var dejligt.. nu er der kun 1 fejl.. nemlig denne :
Error Line 1416, column 168: there is no attribute "VALUE" . ...28; height: 17px; width: 96px" value='' > You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
Du burde altså tage og sætte SHOW SOURCE PÅ. Så kan du gå til linie: 1416! Der kan du se koden er:
<td align="center" style="border-right: 1px solid #B5C6B5"><br><select name="kategori" style="font-size:12px; border:#4f3728; height: 17px; width: 96px" value='' > En select har ikke en value="" så fjern den.
ja nu er det rigtigt.. kan select ikke have en value hvis et felt skal "huske" en værdi feks i tilfælde af forkert indtastning i andre felter..?
Nå men jeg har stadig problemet med margenen der ser forkert ud ved minimering af browser vinduet...har du nogen ide om hvad jeg skal kigge efter her ?
Det du bør gøre, er at have en tabel som styre hele din "side", så det er EN tabel som resizes og ikke som nu, hvor du har flere tabeller. Så tror jeg faktisk du vil kunne rette fejlen ret hurtigt.
<table> <tr> <td> <table>DENNE SKAL INDEHOLDE TOPPEN AF DINE SIDE - LOGO, LOGIN og MENU</table> </td> </tr> <tr> <td> <table>DENNE SKAL INDEHOLDE MIDTERSIDEN - PROFILER og LIGN</table> </td> </tr> <tr> <td> <table>DENNE SKAL INDEHOLDE NEDERSTE SIDE - BUND MENU, EVT CREDIT</table> </td> </tr> </table>
nu har jeg med toppen og midten forsøgt med koden herunder, men som du kan se på www.komsikomsa.dk/menueks.php hjælper det ikke med den overordnede tabel.... :
ja vil mene at det er det samme jeg har nu, men det er som om at det kommer an på inholdet i hhv top, midte og bund hvormeget det "presses sammen ved minimering af browservinduet..
Der er altså stadig noget galt i højre side. Der kommer en stor hvis streg, samt login boksen forbliver ude til højre og rykker ikke med mod midten ved resize.
PX er jo PIXELS. Så hvis du angiver noget i 800px, så vil det altid være 800pixels, også selvom du resizer vinduet. % er procent, og 80% af en skærm med opløsningen: 1024*768 = 819*614 800*640 = 640*512 Så dermed ændres dine størrelser ved en resize.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.