My background image is not working for this ionic project in css. It works if I embed it in HTML, but its messy. I remember hearing something about base64, but not sure. Does anyone know what the problem is? Thanks
put the images you want to use in the project in the www / img folder, and then set their style in your html file.
, eg:
<ion-content style="background: url(img/image_name.jpg) center; background-size: cover;">
, . : www img css img, :
www
img
css
www/img/myImage.png
../img/myImage.png
: - , , www
Source: https://habr.com/ru/post/1625259/More articles:POST file with other form data using HttpURLConnection - androidFind argc and argv from a library - c ++Get servlet init parameters in servlet context listener - servletsЯвляется ли присваивание эквивалентным загрузке/хранению для std:: atomic - c++Visual Studio 2015: Enabling MSTest Magazine - DebuggingHow to pass password from file to mysql command? - unixHow to get heap size set in eclipse.ini file? - javaHow to implement a sticky header on mobile devices - arraysНеожиданный экспорт токенов Webstorm - node.jsSpark scala running - scalaAll Articles