Actually, I don’t understand what you want to achieve. My understanding is that you want the text and image to be more accurate and put the value at runtime?
- JQuery is executed below.
- For the server side, just save asp: textbox inside the h2 tag, and then install it from the server.
- If you want to add reverse at run time then simply remove the
CSS class
section from the HTML add CSS class .section-background
with serveride on the section tag
<head> <title></title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <script src="Scripts/jquery-2.0.3.min.js"></script> <style> .section-background { background: url('Background.jpg') no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } </style> <script> $(document).ready(function () { $("h2").text('abc'); }); </script> </head> <body> <section class="section-background" > <h2></h2> </section> </body>
source share