Browse Source

横幅样式修改

v2
蟑螂恶霸 2 years ago
parent
commit
41ddbeba0f
  1. 58
      src/views/enforceHome.vue

58
src/views/enforceHome.vue

@ -631,13 +631,6 @@
.notice-bar-container:last-child { .notice-bar-container:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
/* .notification{
height: 100%;
font-size: 0.27rem;
z-index: 9999;
width: 100%;
color: black;
}*/
@media screen and (max-width: 380px) { @media screen and (max-width: 380px) {
.home .warp_body { .home .warp_body {
@ -652,22 +645,49 @@
background-size: 100% auto; background-size: 100% auto;
} }
} }
.noticeContent {
margin-top: 10px; .noticeContent {
display: block; position: absolute;
top: calc(2% + 10vh);
right: 3%;
z-index: 999;
padding: 0 0.25rem 0 1rem;
width: 94%;
min-height: 1rem;
background-color: rgba(249, 238, 219, 0.9);
border-radius: 0.5rem;
color: #df6104;
box-sizing: border-box;
overflow: hidden;
}
.noticeContent ul {
width: 100%;
}
.noticeContent li {
position: relative; position: relative;
margin: 0.27rem 0 0 0;
padding: 0 0.25rem 0 1rem;
width: 100%; width: 100%;
height: 25px; // 控制高度以达到控制显示条数的目的 text-align: left;
line-height: 1.25;
height: 0.5rem;
font-size: 0.38rem;
white-space: nowrap;
overflow: hidden; overflow: hidden;
border-top:1px solid #ece6ed; text-overflow: ellipsis;
border-bottom:1px solid #ece6ed; box-sizing: border-box;
} }
.noticeContent li{ .noticeContent li::before {
text-align: left; display: inline-block;
line-height: 25px; position: absolute;
height: 35px; top: 0;
font-size: 12px; left: 0.3rem;
color:red; content: "";
width: 0.5rem;
height: 0.5rem;
background: url("../assets/images/icon_notice.png") no-repeat;
background-size: auto 85%;
} }
.notice_list { .notice_list {
display: block; display: block;

Loading…
Cancel
Save