我在使用移动设备时遇到问题,我在网站的右侧有一个白色区域,并且还有一个滚动条。到目前为止,我已经阅读了此问题,这是造成某个元素的原因的原因,但我找不到解决方案。我已经检查了CSS规则,宽度在每个部分都很好。有人可以向我提出其他建议,以便解决该问题吗?我使用了开发人员选项,并且正在删除元素以查看是什么元素导致了问题,但我没有找到任何东西。我的仓库是: https://lazospap.github.io/LazPap/ 。编辑: https://github.com/LazosPap/LazPap 这是文件
Grant_yin 回答:如何在移动设备上固定水平滚动条
请按照您的风格放置此代码
import java.io.FileOutputStream;
import org.apache.poi.xwpf.usermodel.*;
public class CreateWordSuperScript {
public static void main(String[] args) throws Exception {
XWPFDocument document= new XWPFDocument();
XWPFParagraph paragraph;
XWPFRun run;
paragraph = document.createParagraph();
run = paragraph.createRun();
run.setText("6 ");
run=paragraph.createRun();
run.setText("(2)");
run.setSubscript(VerticalAlign.SUPERSCRIPT); // superscript (2)
paragraph = document.createParagraph();
run=paragraph.createRun();
run.setText("6 ");
run=paragraph.createRun();
run.setText("(2)");
run.setTextPosition(11); // (2) position = baseline + 11 half pt ~ 5.5 pt
FileOutputStream out = new FileOutputStream("word.docx");
document.write(out);
out.close();
document.close();
}
}