本文介绍了什么是干净的HTML和CSS代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<div class="mainHeader">
<div class="row">
<div style="float: left"><a class="img-Logo" href="/">
<img src="/img/logo.png">
</a></div>
<div style="float: left" class="mainNAV">
<div class="mainNAV-item"><a href="/">Home</a></div>
<div class="mainNAV-item"><span style="font-weight: bold; color: #000"><a href="/news">News</a></span></div>
<div class="mainNAV-ittem"><a href="/about">About</a> </div>
</div>
</div>
</div>
<div> </div>
<div style="margin: 2em 1em 1.5em"><div class="artilce_title"><h1>ARTICLE TITLE</h1></div> <h3 style="font-style: italic; font-size 18px"> By <a href="/authors/jon.doe">Jon Doe</a>
</h3>
</div>...<br><br><span style="color: red"></span><p>...</p>...<br><br><div style="font-size: 10px; color: #666"><span>
<a href="#" onclick="window.location='/authors/jon.doe'"><img style="border: 0" src="/img/uploads/jon.doe.jpg"></a>
<div class="author-bio">
Jon Doe is a staff writer for Example.com.
</div>
</span></div>
</div>
我尝试过:
What I have tried:
<div class="mainHeader">
<div class="row">
<div style="float: left"><a class="img-Logo" href="/">
<img src="/img/logo.png">
</a></div>
<div style="float: left" class="mainNAV">
<div class="mainNAV-item"><a href="/">Home</a></div>
<div class="mainNAV-item"><span style="font-weight: bold; color: #000"><a href="/news">News</a></span></div>
<div class="mainNAV-ittem"><a href="/about">About</a> </div>
</div>
</div>
</div>
<div> </div>
<div style="margin: 2em 1em 1.5em"><div class="artilce_title"><h1>ARTICLE TITLE</h1></div> <h3 style="font-style: italic; font-size 18px"> By <a href="/authors/jon.doe">Jon Doe</a>
</h3>
</div>...<br><br><span style="color: red"></span><p>...</p>...<br><br><div style="font-size: 10px; color: #666"><span>
<a href="#" onclick="window.location='/authors/jon.doe'"><img style="border: 0" src="/img/uploads/jon.doe.jpg"></a>
<div class="author-bio">
Jon Doe is a staff writer for Example.com.
</div>
</span></div>
</div>
推荐答案
这篇关于什么是干净的HTML和CSS代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!