UNPKG

react-mammoth

Version:

mammoth for React

46 lines (42 loc) 842 B
.react-mammoth-box { width: 100%; height: 100%; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); padding: 10px 20px; box-sizing: border-box; } .react-mammoth-box table, .react-mammoth-box table tr td { padding: 4px; word-break: break-all; border: 1px solid #747474; } .react-mammoth-box table { border-collapse: collapse; } .react-mammoth-box table.docx-table { width: 100%; } .react-mammoth-box img { max-width: 100%; } .react-mammoth-box a { text-decoration: none; word-wrap: break-word; word-break: normal; } /* 行占位符 */ .react-mammoth-box p { margin: 0.5em 0; } .react-mammoth-box p.blank-line { visibility: hidden; } .react-mammoth-box > img { margin: 1em 0; } .react-mammoth-box p span.wd-catalog { float: right; text-indent: 0; }