Showing
1 changed file
with
11 additions
and
4 deletions
@@ -186,6 +186,11 @@ export default { | @@ -186,6 +186,11 @@ export default { | ||
186 | let vm = this; | 186 | let vm = this; |
187 | 187 | ||
188 | this.$nextTick(() => { | 188 | this.$nextTick(() => { |
189 | + this.$refs.richText.querySelectorAll('p').forEach(ele => { | ||
190 | + if (ele.querySelector('img')) { | ||
191 | + ele.style.padding = 0; | ||
192 | + } | ||
193 | + }); | ||
189 | this.$refs.richText && this.$refs.richText.querySelectorAll('a').forEach(ele => { | 194 | this.$refs.richText && this.$refs.richText.querySelectorAll('a').forEach(ele => { |
190 | if (ele.querySelector('img')) { | 195 | if (ele.querySelector('img')) { |
191 | ele.classList.add('yoho-img-link'); | 196 | ele.classList.add('yoho-img-link'); |
@@ -256,7 +261,7 @@ export default { | @@ -256,7 +261,7 @@ export default { | ||
256 | } | 261 | } |
257 | 262 | ||
258 | .article-context { | 263 | .article-context { |
259 | - padding: 30px; | 264 | + padding: 30px 0; |
260 | } | 265 | } |
261 | 266 | ||
262 | .context-title { | 267 | .context-title { |
@@ -281,6 +286,10 @@ export default { | @@ -281,6 +286,10 @@ export default { | ||
281 | font-family: "PingFang SC", "HiraginoSansGB-W3", "SanFranciscoText-Regular", Helvetica, Roboto, "Heiti SC", "黑体", Arial, sans-serif !important; | 286 | font-family: "PingFang SC", "HiraginoSansGB-W3", "SanFranciscoText-Regular", Helvetica, Roboto, "Heiti SC", "黑体", Arial, sans-serif !important; |
282 | } | 287 | } |
283 | 288 | ||
289 | + & > * { | ||
290 | + padding: 0 30px; | ||
291 | + } | ||
292 | + | ||
284 | h1, | 293 | h1, |
285 | h2, | 294 | h2, |
286 | h3 { | 295 | h3 { |
@@ -300,11 +309,9 @@ export default { | @@ -300,11 +309,9 @@ export default { | ||
300 | } | 309 | } |
301 | 310 | ||
302 | img { | 311 | img { |
303 | - max-width: calc(100% + 60px) !important; | 312 | + max-width: 100% !important; |
304 | height: auto !important; | 313 | height: auto !important; |
305 | display: block; | 314 | display: block; |
306 | - position: relative; | ||
307 | - left: -30px; | ||
308 | } | 315 | } |
309 | 316 | ||
310 | p { | 317 | p { |
-
Please register or login to post a comment