以此爲參考 https://stripe.com/docs/elements/reference#stripe-elements自定義字體SRC與條紋
我試圖創建一個自定義的字體src
傳遞給我的條紋元素:
var elements = stripe.elements(
{
font: {
family:'Effra',
src: "url('https://cuddlecompanions.org/wp-content/themes/diamondphoenix/fonts/effra.eot')"
}
}
);
var style = {
base: {
fontFamily: 'Effra'
}
}
但隨着計劃的字體沒有顯示。 。
任何幫助,將不勝感激:
感謝您的答覆。然而,沒有運氣..試圖在外{}之前的[]也.. Effra被用作iframe中的字體家族,只是沒有與任何東西定義(src ....簡單地用斜體和沒有任何東西) 任何幫助,將不勝感激 – user1367323