12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- /* A4 纸张样式 */
- .cke_editable {
- width: 21cm;
- min-height: 29.7cm;
- padding: 2cm;
- margin: 1cm auto;
- border: 1px #D3D3D3 solid;
- border-radius: 5px;
- box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
- background-color: white;
- }
- /* 打印样式 */
- @media print {
- body {
- background: none;
- }
- .cke_editable {
- width: 21cm;
- height: 29.7cm;
- padding: 0;
- margin: 0;
- border: none;
- border-radius: 0;
- box-shadow: none;
- }
- }
- /* 屏幕显示样式 */
- @media screen {
- body {
- background: #e0e0e0;
- }
- }
- /* 设置页面大小 */
- @page {
- size: A4;
- margin: 0;
- }
- /* 确保段落样式的一致性 */
- p {
- margin: 0; /* 重置默认边距 */
- padding: 0; /* 重置默认内边距 */
- }
- /* 使用 Word 兼容的行距计算方式 */
- p[style*="line-height"] {
- display: block;
- box-sizing: border-box;
- }
- /* 确保段前段后距离的准确性 */
- p[style*="margin-top"],
- p[style*="margin-bottom"] {
- position: relative;
- }
|