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