gpt4 book ai didi

html - 在按钮之间添加空间?

转载 作者:太空狗 更新时间:2023-10-29 15:24:17 26 4
gpt4 key购买 nike

您好,我这里有一个代码,除了一件事外,它是完美的。代码中每个按钮之间没有空格。我试过 margin ,但不幸的是它是一个无序列表,所以我有点困惑。我将添加或替换什么以在两个按钮之间留出空间。帮助?? :(

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<style type="text/css">

.rollovericons a#terms{
display: block;
width:138px;
height:27px;
background: url(http://icpy.webs.com/button/Terms.png) no-repeat;
}

.rollovericons a:hover#terms{
background: url(http://icpy.webs.com/button/Terms0.png) no-repeat;
}
.rollovericons a#contact{
display: block;
width:138px;
height:27px;
background: url(http://icpy.webs.com/button/contact.png) no-repeat;
}

.rollovericons a:hover#contact{
background: url(http://icpy.webs.com/button/contact0.png) no-repeat;
}

</style>

<body>

<div class="rollovericons">
<a href="http://www.twitter.com" id="terms"></a>
<a href="http://www.twitter.com" id="contact"></a>
</div>

</body>

最佳答案

只是做:

.rollovericons a{
margin: 10px;
}

这将为每个 <a> 添加边距rollovericons 内的元素类。

关于html - 在按钮之间添加空间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17644088/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com