pojiro / teamgenik_pub_samples

2 stars 2 forks source link

style は teamgenik では使えないため、 class で任意値を使用する方法に修正 #4

Closed pojiro closed 1 year ago

pojiro commented 1 year ago

CSS の url() で相対パスを使う場合、その起点となるパスは stylesheet のファイルパスになる点に注意。

Relative URLs, if used, are relative to the URL of the stylesheet (not to the URL of the web page).

ref. https://developer.mozilla.org/en-US/docs/Web/CSS/url


dist/tailwind.css がパスの起点となるので、相対パスは dist/../src/images/file に展開される。