2011-06-17 41 views
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> 



<head> 
<title>New Page</title> 
</head> 
<body> 


<input type='text' id='Textbox1' name='Textbox' value='Test' maxlength=20 style='left:194; top:43; width:100; height:32; font-family:Arial; font-style:normal; font-weight:normal; font-size:14; color:#000000; text-align:left; letter-spacing:0; line-height:0; position:absolute; padding:0; margin:0; ' /> 
<button id='4df60b2d1cf696913aec0377' id='Button1' name='Button' style='left:193.5; top:237.5; width:100; height:32; font-family:Arial; font-style:normal; font-weight:normal; font-size:14; color:#000000; text-align:center; letter-spacing:0; line-height:0; position:absolute; padding:0; margin:0; '>Submit</button> 
<a name='Anchor' id='Anchor1'href='http://www.google.com' target='_blank' style='left:42.5; top:38.5; width:100; height:32; font-family:Arial; font-style:normal; font-weight:normal; font-size:14; color:#000000; text-align:left; letter-spacing:0; line-height:0; position:absolute; padding:0; margin:0; ' >link</a> 
<img name='Img' id='Img1' src='i4.jpg' alt='Image not Display' style='left:79.5; top:195.5; width:100; height:32; font-family:Arial; font-style:normal; font-weight:normal; font-size:14; color:#FFFFFF; text-align:left; letter-spacing:0; line-height:0; position:absolute; padding:0; margin:0; '></img> 
</body> 
</html> 

這個HTML代碼並在左上角那裏我犯錯誤條款沒有得到在瀏覽器中正確內嵌樣式不givnig它的效果

+0

所有這些元件,而不是塊內聯元件時,不會被默認左側,頂部性質的影響。考慮在頭部使用css或者外部你會有更多的選項 – Ibu 2011-06-17 05:56:08

+0

來正確使用絕對定位,你需要一個親戚。將身體設置爲相對位置。請不要使用內嵌的那個 – Ibu 2011-06-17 05:57:23

+0

我建議你開始使用內聯樣式以外的東西。你似乎有很多樣式要做,如果你使用外部樣式表,或者定義爲內部樣式,但不是內聯樣式會更好。 – Balanivash 2011-06-17 06:00:53

回答

0

請把px後它非零數值上班。

例如:height: 100px;

+0

謝謝..他現在正在工作..我錯過了愚蠢的觀點:P – 2011-06-17 06:32:54

+0

是的,很容易忘記這樣的事情:D – kei 2011-06-17 06:34:45