对于从后台直接传进来的带标签的文章直接在前台展示问题

2018-04-12  本文已影响0人  Eastblue

前端从后台直接取数据展示到页面有时候需要稍微修改下样式。可以直接加important。

如以下代码

.content {

margin-top: 0; font-size: 16px; color: #000; line-height: 30px; font-family: "PingFang SC", "Lantinghei SC", "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", "微软雅黑";

* { font-family: "PingFang SC", "Lantinghei SC", "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", "微软雅黑" !important; color: #000 !important; }

p { font-size: 16px !important; margin-bottom: 25px !important; line-height: 30px !important; }

h1,h2,h3,h4,h5,h6 { margin-bottom: 25px !important; }

img { display: block !important; margin: 25px auto !important; }

    a { color: #4a90f6 !important; text-decoration: none !important;

        &:hover { text-decoration: underline !important; }

        }

}

上一篇下一篇

猜你喜欢

热点阅读