123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- /* pages/main/main.wxss */
- /* 轮播图区域 */
- .banners {
- width: 100%;
- height: 400rpx;
- padding: 2rpx 0;
- }
- .banners image {
- width: 100%;
- height: 100%;
- }
- /* 公告区 */
- .notice {
- display: flex;
- height: 60rpx;
- background-color: rgb(171, 188, 236);
- align-items: center;
- margin-top: 20rpx;
- }
- /* 公告详情、公告标题 */
- .noticeTitle,
- .noticeDetail {
- font-size: 36rpx;
- height: 60rpx;
- line-height: 60rpx;
- }
- .noticeTitle{
- margin-left: 20rpx;
- }
- /* 公告图标 */
- .noticeIcon {
- width: 40rpx;
- }
- /* 公告内容 */
- .noticeContent {
- height: 60rpx;
- width: 52%;
- margin-left: 20rpx;
- overflow: hidden;
- flex-wrap: nowrap;
- }
- /* 公告文字 */
- .noticeDetail {
- white-space: nowrap;
- animation: loop 8s 0.5s linear infinite normal;
- display: inline-block;
- vertical-align: top;
- font-size: 32rpx;
- color: #fff;
- }
- /* 公告文字滚动 */
- @keyframes loop {
- 0% {
- transform: translateX(350px);
- -webkit-transform: translateX(350px);
- }
- 100% {
- transform: translateX(-100%);
- -webkit-transform: translateX(-100%);
- }
- }
- @-webkit-keyframes loop {
- 0% {
- transform: translateX(300px);
- -webkit-transform: translateX(300px);
- }
- 100% {
- transform: translateX(-100%);
- -webkit-transform: translateX(-100%);
- }
- }
- /* 查看详情 */
- .toNoticeDetail {
- /* background-color: #fff; */
- /* border-radius: 40rpx; */
- padding: 16rpx;
- /* margin-right: 20rpx; */
- }
- /* 轮播图下方导航模块 */
- .navList {
- display: flex;
- position: relative;
- flex-wrap: wrap;
- padding: 20rpx;
- justify-content: space-around;
- text-align: center;
- }
- .title {
- font-size: 40rpx;
- color: #fff;
- line-height: 200rpx;
- }
- /* 导航模块公共样式 */
- .mainIntro,
- .secondIntro,
- .scenicList,
- .recommendCate {
- width: 45%;
- height: 200rpx;
- margin-top: 40rpx;
- }
- /* 单独设置导航模块的背景色 */
- .mainIntro {
- background-color: #48D881;
- }
- .secondIntro {
- background-color: #F9AC42;
- }
- .scenicList {
- background-color: #f76c71;
- }
- .recommendCate {
- background-color: #3FA6F5;
- }
- /* 反馈建议 */
- .suggest{
- margin-top: 100rpx;
- }
|