(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{567:function(t,s,e){"use strict";e.r(s);var n=e(12),a=Object(n.a)({},(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"解决引入本组件前后页面某些文字的font-size被强制设置为固定值14px导致的样式问题-webclient-vue-mapboxgl同样适用"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#解决引入本组件前后页面某些文字的font-size被强制设置为固定值14px导致的样式问题-webclient-vue-mapboxgl同样适用"}},[t._v("#")]),t._v(" 解决引入本组件前后页面某些文字的font-size被强制设置为固定值14px导致的样式问题（webclient-vue-mapboxgl同样适用）")]),t._v(" "),e("p",[t._v("本组件所引用的Antd中的antd.css文件将"),e("strong",[t._v("font-size")]),t._v("全局设置为了"),e("strong",[t._v("14px")]),t._v("。")]),t._v(" "),e("p",[t._v("因此在某些未使用Antd的项目中，引用本组件后有可能会出现字体大小变化的问题。")]),t._v(" "),e("h2",{attrs:{id:"解决方案-在项目的app-vue文件中全局设置font-size"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#解决方案-在项目的app-vue文件中全局设置font-size"}},[t._v("#")]),t._v(" 解决方案：在项目的App.vue文件中全局设置font-size")]),t._v(" "),e("p",[t._v("在项目的App.vue文件的style中添加以下内容，将"),e("strong",[t._v("font-size")]),t._v("强制设置为"),e("strong",[t._v("unset")]),t._v("或"),e("strong",[t._v("inherit")]),t._v("：")]),t._v(" "),e("div",{staticClass:"language-css extra-class"},[e("pre",{pre:!0,attrs:{class:"language-css"}},[e("code",[e("span",{pre:!0,attrs:{class:"token selector"}},[t._v("body")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n  "),e("span",{pre:!0,attrs:{class:"token property"}},[t._v("font-size")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v(" unset "),e("span",{pre:!0,attrs:{class:"token important"}},[t._v("!important")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])])])}),[],!1,null,null,null);s.default=a.exports}}]);