优化样式

This commit is contained in:
dragon
2024-10-11 18:23:07 +08:00
parent 33b0bdd989
commit 2d6cb59568
3 changed files with 27 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ body {
.data {
width: 100%;
height: 14.46667rem;
height: 16.46667rem;
box-sizing: border-box;
padding: 2.88rem 0.4rem 0;
overflow-y: scroll;
@@ -164,8 +164,17 @@ body {
.arabic .data .box .mp {
text-indent: -0.8rem;
float: right;
}
.arabic .data .box b .highlight {
.arabic .data .box img {
float: right;
}
.arabic .data .box b {
float: right;
}
.arabic .data .box b strong {
float: left;
}

View File

@@ -75,7 +75,7 @@ body {
.data {
width: 100%;
// height: px2rem(1010);
height: 14.46667rem;
height: 16.46667rem;
box-sizing: border-box;
padding: px2rem(216) px2rem(30) 0;
overflow-y: scroll;
@@ -170,8 +170,15 @@ body {
.arabic{
.data .box .mp{
text-indent: -0.8rem;
float: right;
}
.data .box b .highlight{
float: left;
.data .box img{
float: right;
}
.data .box b {
float: right;
strong{
float: left;
}
}
}

View File

@@ -68,6 +68,12 @@ function translateFun() {
$('.text5').text(langReplace(localLang.select.text5));
$('.text6').text(langReplace(localLang.select.text6));
$('.text7').text(langReplace(localLang.select.text7));
var width = window.innerWidth;
var height = window.innerHeight;
console.log(width,height);
if (width <= 375 && height <= 430) {
$('.data').css('height','14.46667rem')
}
}
// 搜索接口
function search(searchKey) {