我写了html代码,我遇到了问题。我添加了一个链接到一个图像,但这个图像有一个填充。所以现在填充是链接和图像的一部分。我可以做些什么吗?只有图像被链接?填充是链接的一部分
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Just testing</title>
<style type=text/css>
.design {background-color: orange; padding: 50px; border: thick double red; margin: 500}
.design2 {background-color: yellow; padding: 10px 100px; border: thick groove red; margin: 10}
.centered {text-align: center}
#blink {text-decoration: underline overline;;color: red}
</style>
</head>
<body style="background-color: lightgray">
<h1 class="centered design2">This is <span style="color:red">MY</span> site :D:D</h1>
<a href="http://upload.wikimedia.org/wikipedia/commons/8/83/Neugierige-Katze.JPG">
<p class="centered"><img class="design" style="align: center" src="Neugierige-Katze.jpg" alt="tolle Katze" width="500" height="325">
</p>
</a>
<p class="centered">Cat the Cat is <span id="blink"> WATCHING YOU</span>
</p>
<p class="centered">
<audio controls>
<source src="Cat_Meow_2-Cat_Stevens-2034822903.mp3" type="audio/mpeg">
<source src="Cat_Meow_2-Cat_Stevens-2034822903.ogg" type="audio/ogg">
</body>
</html>
我很感谢任何能够帮助我的人。所有的
`
这对我工作得很好,但到底是什么的属性附加伤害:风格=“保证金:0汽车;显示:表,实际上代表 – New2HTML
这是一种居中的方式,因为我给它设计类,否则它会在左边 –
边界属性中的自动值有什么不同?为什么使用值0? – New2HTML