我正在尝试制作一个围绕除标签之外的所有内容的 div<p>
标签。有没有办法排除某个或某些标签?谢谢您的帮助。
我的代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<link rel="stylesheet" type="text/css" href="styles.css" />
<body>
<div id='main'>
<h1>FREE Python programs!</h1>
<h3><p>You're saying to yourself "I could use a handy little program that does this
" or "I need a better calculator than Windows has provided me!" THIS IS THE SITE YOU'VE BEEN LOOKING FOR! Just email me at:</p></h3>
<a href="mailto:benevedeselias@gmail.com" target="_blank">Python Program Maker</a>
<h3><p>And I'll respond as fast as I can!</p></h3>
<p>This is my portfolio of very small applications:</p>
<a href="portfolio.zip">Portfolio Download</a>
<p>If you would like to subscribe to my Python Mailing list, click on the link above to shoot me an email. Please have the subject be "Add to mailing list". All this mailing list would do is send you updates to my website, python programs, or portfolio. This would mean a great lot to me if you did.</p>
<p>These links provide more information about each piece in my portfolio:</p>
<a href='CardDrawer.html'>Card Drawer</a>
<a href='BlockGame.html'>Block Game</a>
<a href='Dice.html'>Dice</a>
<a href='SecretNumber.html'>Secret Number</a>
<p>If you would like to learn python yourself, I have started a video tutorial series. Here is the first one:</p>
<iframe width="560" height="315" src="http://www.youtube.com/embed/STe5x9V8kbk?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
</body>
</head>
我所要做的就是避免在每个 p 标签处中断多个 div 标签并在它之后重新开始。