有时候富文本加载到页面上是需要一些统一的样式处理
/* 富文本的样式默认修改 v-html */
.vHtmlMess {
white-space: pre-wrap;
img,video {
max-width: 100% !important;
height: auto;
}
table {
border: none;
border-collapse: collapse;
max-width: 100% !important;
}
table td,
table th {
border: 1px solid #ccc;
padding: 3px 5px;
min-width: 50px;
height: 20px;
}
table th {
border-right: 1px solid #ccc;
border-bottom: 2px solid #ccc;
text-align: center;
background-color: #f1f1f1;
}
}