Chiyansama(留言 | 贡献) (创建页面,内容为“.titlestyle-ysm { display: grid; grid-template-columns: repeat(auto-fill, 10em); grid-template-rows: auto ; justify-content: space-between; justify-items: center; } .item { display: flex; font-size: 1em; height: 2.5em; width: 10em; background-color: #EAF5E4; border: 1px solid rgba(0, 0, 0, .12); border-radius: 3px; align-items: center; cursor: pointer; margin: 1em; } .phone-title { display: flex;…”) |
Chiyansama(留言 | 贡献) (// Edit via Wikiplus) |
||
第37行: | 第37行: | ||
position:absolute; |
position:absolute; |
||
top:-33.5px; |
top:-33.5px; |
||
left: |
left:5px; |
||
content:attr(data-title); |
content:attr(data-title); |
||
color:white; |
color:white; |
2023年7月18日 (二) 17:10的版本
.titlestyle-ysm {
display: grid;
grid-template-columns: repeat(auto-fill, 10em);
grid-template-rows: auto ;
justify-content: space-between;
justify-items: center;
}
.item {
display: flex;
font-size: 1em;
height: 2.5em;
width: 10em;
background-color: #EAF5E4;
border: 1px solid rgba(0, 0, 0, .12);
border-radius: 3px;
align-items: center;
cursor: pointer;
margin: 1em;
}
.phone-title {
display: flex;
padding-left: 1em;
padding-right: 1em;
background-color: #EAF5E4;
}
.web-title{
position: relative;
white-space: nowrap;
flex: 1;
text-overflow: ellipsis;
}
.web-title:hover:after {
font-size: 0.8em;
position:absolute;
top:-33.5px;
left:5px;
content:attr(data-title);
color:white;
border:1px solid #000;
border-radius:5px ;
background-color:#333;
}
@media screen and (max-width: 768px) {
.titlestyle-ysm {
grid-template-columns: repeat(auto-fill, 5em);
}
.item {
justify-content: center;
width: 4em;
height: 2.5em;
}
.web-title {
display: none;
}
}