I was trying to set the div width as a variable the_variable for the progress bar. The variable has been created from a python file, but I can't call it in a style function. Here is the code:
<meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <div class="w3-light-grey"> Progress bar <div class="w3-container w3-green w3-center w3-large" style="width:the_variable %"></div> </div> https://stackoverflow.com/questions/66963010/how-to-set-the-div-width-as-a-variable April 06, 2021 at 01:11PM
没有评论:
发表评论