Revision history [back]

click to hide/show revision 1
initial version

asked 2022-05-03 09:59:01 +0800

manchen gravatar image manchen

How to use image on incl

Hi ZK,

I have a login.zul and login html(zul include html),

my img is not work on html,

How does it(html) read ZK static resources?

Tks,

Man

<zk xmlns:n="native">

<!-- Google fonts -->
<?link href="https://fonts.googleapis.com/css2?family=Jost:[email protected];400;500;600;700;800;900&display=swap" rel="stylesheet"?>

<!-- Custom Stylesheet -->
<?link type="text/css" rel="stylesheet" href="~./assets/css/style.css" ?>

<!-- External JS libraries -->
<script src="~./assets/js/jquery-3.6.0.min.js"></script>
<script src="~./assets/js/bootstrap.bundle.min.js"></script>
<script src="~./assets/js/jquery.validate.min.js"></script>
<script src="~./assets/js/app.js"></script>
<!-- Custom JS Script -->
<include mode="defer" src="~./html/login.html"/>

</zk>

and my login.html image description

How to use image on inclinclude html

Hi ZK,

I have a login.zul and login html(zul include html),

my img is not work on html,

How does it(html) read ZK static resources?

Tks,

Man

<zk xmlns:n="native">

<!-- Google fonts -->
<?link href="https://fonts.googleapis.com/css2?family=Jost:[email protected];400;500;600;700;800;900&display=swap" rel="stylesheet"?>

<!-- Custom Stylesheet -->
<?link type="text/css" rel="stylesheet" href="~./assets/css/style.css" ?>

<!-- External JS libraries -->
<script src="~./assets/js/jquery-3.6.0.min.js"></script>
<script src="~./assets/js/bootstrap.bundle.min.js"></script>
<script src="~./assets/js/jquery.validate.min.js"></script>
<script src="~./assets/js/app.js"></script>
<!-- Custom JS Script -->
<include mode="defer" src="~./html/login.html"/>

</zk>

and my login.html image description

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More