|
@@ -10,13 +10,13 @@
|
|
|
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
|
|
a, abbr, acronym, address, big, cite, code,
|
|
|
del, dfn, em, img, ins, kbd, q, s, samp,
|
|
|
- small, strike, strong, sub, sup, tt, var,
|
|
|
- b, u, i, center,
|
|
|
+ small, strike, sub, sup, tt, var,
|
|
|
+ u, i, center,
|
|
|
dl, dt, dd, ol, ul, li,
|
|
|
fieldset, form, label, legend,
|
|
|
table, caption, tbody, tfoot, thead, tr, th, td,
|
|
|
- article, aside, canvas, details, embed,
|
|
|
- figure, figcaption, footer, header, hgroup,
|
|
|
+ article, aside, canvas, details, embed,
|
|
|
+ figure, figcaption, footer, header, hgroup,
|
|
|
menu, nav, output, ruby, section, summary,
|
|
|
time, mark, audio, video {
|
|
|
margin: 0;
|
|
@@ -37,9 +37,9 @@
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
- <div class="page">
|
|
|
- {$content}
|
|
|
- </div>
|
|
|
+<div class="page">
|
|
|
+ {$content}
|
|
|
+</div>
|
|
|
</body>
|
|
|
</html>
|
|
|
<script src="/assets/js/jquery-3.1.1.min.js"></script>
|
|
@@ -47,7 +47,7 @@
|
|
|
|
|
|
function replaceDetail(){
|
|
|
var details = $('.page').html();
|
|
|
- //newContent仅是details替换后内容;
|
|
|
+ //newContent仅是details替换后内容;
|
|
|
let newContent = details.replace(/<img[^>]*>/gi, function (match, capture) { //去除三标签
|
|
|
match = match.replace(/style="[^"]+"/gi, '').replace(/style='[^']+'/gi, '');
|
|
|
match = match.replace(/width="[^"]+"/gi, '').replace(/width='[^']+'/gi, '');
|