html怎么隐藏下一行添加按钮,HTML / CSS在线显示按钮并自动转到下一行

我是HTML / CSS的新手,所以我真的不知道它是如何工作的,但这就是我想要的。

有像块一样的按钮但问题是: -

1)当页面结束时如何使其转到下一行(对于除PC以外的其他设备稳定)

2)如何删除不同按钮之间的边距

3)我想要的只是这些按钮在页面上不再是页脚和标题(但在所有设备上都稳定)

4)我如何添加图片作为按钮背景。

5)当我将鼠标悬停在它们上面时,它会显示我添加的类别。

希望你明白我想学的东西。谢谢。





.button {

background-color: black;

text-decoration: none;

border-radius: 0px 0px 0px 0px;

margin:0px;

list-style-type:none;

line-height:0px;

color:white;

text-align:center;

padding:100px;

width:240px;

height:240px;

position: relative;

left: -20px;

/*opacity: 0.8;*/

display:inline;

}

#options {

line-height:00px;

position:relative;

top: 100px;

bottom: auto;

float:center;

padding:0px 10px 10px 0px;

display: inline;

}

.button :hover {

background-color: white;

text-decoration: none;

border-radius: 0px 0px 0px 0px;

margin:0px;

list-style-type:none;

line-height:60px;

color:black;

text-align:center;

padding:0px;

width:210px;

left: -30px;

position:relative;

z-index:-0.1;

opacity: 1;

-moz-opacity: 0.8;

transition: 0.4s ease;

-webkit-transition: 0.4s ease;

-moz-transition: 0.4s ease;

}

a:link {color:white; background-color:transparent; text-decoration: none;}

a:visited {color:white; background-color:transparent; text-decoration: none;}

a:hover {color:black; background-color:transparent; text-decoration: none; }

a:active {color:white; background-color:transparent; text-decoration: none}




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值