我刚开始学习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