Skip to content

Commit 377b060

Browse files
Update main.css
1 parent ba889c1 commit 377b060

1 file changed

Lines changed: 33 additions & 21 deletions

File tree

‎src/css/main.css‎

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ text-shadow: 2px 2px 5px red;
4747
height: 500px;
4848
}
4949

50-
/* 遮罩层 */
51-
#overlay {
50+
/* 遮罩层 */
51+
#overlay {
5252
position: fixed;
5353
left: 0px;
5454
top: 0px;
@@ -60,36 +60,36 @@ text-shadow: 2px 2px 5px red;
6060
/* 兼容IE8及以下 */
6161
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000);
6262
display: none;
63-
}
64-
/* 弹出框主体 */
65-
.popup {
63+
}
64+
/* 弹出框主体 */
65+
.popup {
6666
background-color: #ffffff;
6767
max-width: 400px;
6868
min-width: 200px;
6969
height: 240px;
7070
border-radius: 5px;
7171
margin: 100px auto;
7272
text-align: center;
73-
}
74-
/* 弹出框的标题 */
75-
.popup_title {
73+
}
74+
/* 弹出框的标题 */
75+
.popup_title {
7676
height: 60px;
7777
line-height: 60px;
7878
border-bottom: solid 1px #cccccc;
79-
}
80-
/* 弹出框的内容 */
81-
.popup_content {
79+
}
80+
/* 弹出框的内容 */
81+
.popup_content {
8282
height: 50px;
8383
line-height: 50px;
8484
padding: 15px 20px;
85-
}
86-
/* 弹出框的按钮栏 */
87-
.popup_btn {
85+
}
86+
/* 弹出框的按钮栏 */
87+
.popup_btn {
8888
padding-bottom: 10px;
89-
}
90-
/* 弹出框的按钮 */
91-
.popup_btn button {
92-
/*color: #778899;*/
89+
}
90+
/* 弹出框的按钮 */
91+
.popup_btn button {
92+
/*color: #778899;*/
9393
width: 40%;
9494
height: 40px;
9595
cursor: pointer;
@@ -98,8 +98,20 @@ text-shadow: 2px 2px 5px red;
9898
margin: 5px 10px;
9999
color: #ffffff;
100100
background-color: #337ab7;
101-
}
101+
}
102102

103-
.ico-link{
104-
border-radius: 15px;
103+
.ico-link{
104+
border-radius: 15px;
105+
}
106+
107+
/* 在小屏幕上(例如手机)使用响应式设计 */
108+
@media (max-width: 767px) {
109+
/* 调整阅读更多按钮和文字的字体大小和位置 */
110+
.card-body .btn {
111+
font-size: 14px; /* 根据需要调整字体大小 */
112+
margin-top: 10px; /* 根据需要调整按钮与文字之间的间距 */
105113
}
114+
.card-body .card-text {
115+
font-size: 12px; /* 根据需要调整字体大小 */
116+
}
117+
}

0 commit comments

Comments
 (0)