我剛開始學習CSS並在本地門戶網站上創建了一個示例頁面。我想知道這些編碼風格是否正確。這些編碼風格是否正確?
我開始知道這些編碼風格在主要程度上不起作用。
你能糾正我的代碼,使它更可行,我會嘗試學習一些你的編碼風格,並會適應我的方便。
很抱歉,如果這些問題不能在本網站上提出。
<div class="initial">
<div style="position:relative; width:100%; margin-Top: 4.75%; font-size: 1.3em; font-family: Helvetica; text-align: center; background-color: #bbb;">
<center><p style='line-height:200%'>
<a href=h.php style="text-decoration: none; color:white"> Home</a> \t
<a href=click.php style="text-decoration: none; color:white">Please Click Here</a> \t
<a href=contact.php style="text-decoration: none; color:white">Contact</a> \t
<a href=about.php style="text-decoration: none; color:white">About Me</a></p></center>
</style>
</div>
</div>
感謝,
不要在一個文件中混合使用HTML和CSS;將縮進應用於您的代碼,以便閱讀;不要使用 進行佈局(改爲使用樣式)。 – akasummer
如果你想要代碼審查,使用代碼審查http://codereview.stackexchange.com/ – Neoaptt
對於這種線我可以混合CSS和HTML不是嗎? – Novice