123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- // pc端:
- // 设计稿1440*900 所有尺寸基本按px来即可;
- // 正文 16px;
-
-
- // 移动端:
- // 设计稿宽800px,按逻辑尺寸的两倍制作。因此真实尺寸需要除2;
- // 如设计稿字体大小28px,则实真字体大小为28px/2=14px;
- // 或使用vw 字体大小:28/800*10 = 3.5vw
- // 正文 14px 或 3.5vw
-
- //pc端样式
- .main {
- width: 100%;
- max-width: 1920px;
- margin: 0 auto;
- padding-top: 70px;
- padding-bottom: 110px;
- .marginTop30{
- margin-top: 30px;
- }
- .marginTop80{
- margin-top: 80px;
- }
- .marginTop45{
- margin-top: 45px;
- }
- .marginTop100{
- margin-top: 100px;
- }
- .content{
- width: 1300px;
- margin: 0 auto;
- .detail_head{
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-top: 60px;
- padding-bottom: 20px;
- font-size: 18px;
- color: #231F20;
- border-bottom: 1px solid #DDE2E6;
- .head_left{
- display: flex;
- align-items: center;
- div{
- margin-right: 60px;
- }
- }
- .head_right{
- font-size: 18px;
- color: #231F20;
- cursor: pointer;
- display: flex;
- align-items: center;
- img{
- width: 30px;
- height: 30px;
- object-fit: cover;
- }
- }
- }
- .detail_head2{
- display: none;
- }
- .detail_title{
- width: 100%;
- text-align: left;
- margin-top: 80px;
- .title{
- font-weight: bold;
- font-size: 40px;
- color: #333333;
- text-align: left;
- margin-bottom: 80px;
- }
- .date{
- color: #333333;
- font-size: 16px;
- text-align: center;
- }
-
- }
- .paragraphHeadings{
- font-weight: bold;
- font-size: 24px;
- color: #333333;
- }
- .paragraphContext{
- line-height: 36px;
- font-weight: 400;
- font-size: 20px;
- color: #231F20;
- }
- .imgBox{
- width: 100%;
- background-color: #EAECEF;
- img{
- width: 100%;
- height: 731px;
- }
- }
- .detail_footer{
- width: 100%;
- border-top: 1px solid #DDE2E6;
- padding-top: 40px;
- font-size: 18px;
- color: #231F20;
- margin-top: 128px;
- a{
- margin-bottom: 40px;
- display: block;
- transition: all 0.2s;
- &:hover{
- color: #B81C25;
- }
- }
- }
-
- }
- }
- a{
- display: inline-block;
- }
-
- @media screen and (min-width: 801px) and (max-width: 1400px) {
- .main{
-
- }
- }
-
- //移动端样式
- @media screen and (max-width:800px) {
-
- .main {
- width: 100%;
- padding-top: 11vw;
- padding-bottom: 16vw;
- .marginTop30{
- margin-top: 5vw;
- }
- .marginTop80{
- margin-top: 13.75vw;
- }
- .marginTop45{
- margin-top: 7.5vw;
- }
- .marginTop100{
- margin-top: 15vw;
- }
- .content{
- width: 90%;
- margin: 0 auto;
- .detail_title{
- width: 100%;
- text-align: left;
- margin-top: 40px;
- .title{
- font-weight: bold;
- font-size: 6vw;
- color: #333333;
- text-align: left;
- margin-bottom: 7.5vw;
- }
- .date{
- color: #333333;
- font-size: 3.5vw;
- text-align: center;
- }
-
- }
- .detail_head{
- display: none;
- }
- .detail_head2{
- display: block;
- margin-top: 12.5vw;
- border-bottom: 1px solid #DDE2E6;
- .head_left,.head_right{
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 20px;
- div{
- display: flex;
- align-items: center;
- }
- img{
- width: 6.5vw;
- height: 6.5vw;
- }
- }
- }
- .paragraphHeadings{
- font-weight: bold;
- font-size: 4.5vw;
- color: #333333;
- }
- .paragraphContext{
- font-size: 4.25vw;
- color: #333333;
- line-height: 7.75vw;
- text-align: justify;
- }
- .imgBox{
- width: 100%;
- background-color: #EAECEF;
- img{
- width: 100%;
- height: 40.125vw;
- }
- }
- .detail_footer{
- font-size: 3.375vw;
- margin-top:120px;
- a{
- width: 100%;
- display: block;
- display: -webkit-box; /* 使用 Flexbox 布局 */
- -webkit-box-orient: vertical; /* 垂直方向排列 */
- -webkit-line-clamp: 1; /* 限制显示的行数,这里是3行 */
- overflow: hidden; /* 隐藏超出部分 */
- text-overflow: ellipsis;
- margin-bottom: 5.25vw;
- }
- }
- }
- }
- }
|