修改样式

This commit is contained in:
yangjun 2025-10-27 09:40:14 +08:00
parent 4aad84590b
commit e7374689c7
1 changed files with 7 additions and 1 deletions

View File

@ -23,6 +23,11 @@
<script src="../../static/portal/js/flexible.js" th:src="@{/portal/js/flexible.js}"></script>
<script src="../../static/portal/js/detectZoom.js" th:src="@{/portal/js/detectZoom.js}"></script>
<script src="../../static/portal/js/counter.js" th:src="@{/portal/js/counter.js}"></script>
<style>
#contentID img{
display: inline-block;
}
</style>
</head>
<body>
<div class="swiper-container">
@ -110,7 +115,8 @@
for(var i = 0; i < fileDown.length; i++){
var name = fileDown[i].substring(fileDown[i].lastIndexOf("/")+1,fileDown[i].length)
if(name){
downloadtext += `<div style="margin-left:30px;"><a href="javascript:void(0)" onclick="window.open('`+fileDown[i]+`','_blank')">`+(i)+`、`+name+`</a></div>`;
var letName = name.substring(0,name.lastIndexOf("_")) + name.substring(name.lastIndexOf("."),name.length);
downloadtext += `<div style="margin-left:30px;"><a href="javascript:void(0)" onclick="window.open('`+fileDown[i]+`','_blank')">`+(i)+`、`+letName+`</a></div>`;
}
}
}