1. <i id='WNziO'><tr id='WNziO'><dt id='WNziO'><q id='WNziO'><span id='WNziO'><b id='WNziO'><form id='WNziO'><ins id='WNziO'></ins><ul id='WNziO'></ul><sub id='WNziO'></sub></form><legend id='WNziO'></legend><bdo id='WNziO'><pre id='WNziO'><center id='WNziO'></center></pre></bdo></b><th id='WNziO'></th></span></q></dt></tr></i><div id='WNziO'><tfoot id='WNziO'></tfoot><dl id='WNziO'><fieldset id='WNziO'></fieldset></dl></div>
        <bdo id='WNziO'></bdo><ul id='WNziO'></ul>
      <tfoot id='WNziO'></tfoot>

      <small id='WNziO'></small><noframes id='WNziO'>

      <legend id='WNziO'><style id='WNziO'><dir id='WNziO'><q id='WNziO'></q></dir></style></legend>

    2. 使用php的简单水平条形图

      时间:2023-05-21

      <small id='XJ8kL'></small><noframes id='XJ8kL'>

    3. <legend id='XJ8kL'><style id='XJ8kL'><dir id='XJ8kL'><q id='XJ8kL'></q></dir></style></legend><tfoot id='XJ8kL'></tfoot>
        <bdo id='XJ8kL'></bdo><ul id='XJ8kL'></ul>
            <i id='XJ8kL'><tr id='XJ8kL'><dt id='XJ8kL'><q id='XJ8kL'><span id='XJ8kL'><b id='XJ8kL'><form id='XJ8kL'><ins id='XJ8kL'></ins><ul id='XJ8kL'></ul><sub id='XJ8kL'></sub></form><legend id='XJ8kL'></legend><bdo id='XJ8kL'><pre id='XJ8kL'><center id='XJ8kL'></center></pre></bdo></b><th id='XJ8kL'></th></span></q></dt></tr></i><div id='XJ8kL'><tfoot id='XJ8kL'></tfoot><dl id='XJ8kL'><fieldset id='XJ8kL'></fieldset></dl></div>

                <tbody id='XJ8kL'></tbody>
                本文介绍了使用php的简单水平条形图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                我见过一个 facebook 应用程序,其中单击一个单选按钮会呈现一个图表.

                如下图所示:

                我想知道是否有任何类似的图形库可以在 php 中生成相同的图形.

                谢谢,

                潘卡伊

                解决方案

                实际上,生成这种图形很容易——只需使用两个 DIVs——一个是 100% 宽度的条,另一个DIV 是在第一个 DIV 中制作您需要的背景颜色 %.你甚至可以在其中包含文本.简单,只是简单的 HTML/CSS.

                更新:

                HTML:

                <div class="percentage" style="width:66%">这是 66% 宽的 div</div>

                CSS:

                .bar { 宽度:99%;边框:1px 实心 #000;}.percentage { 背景:#000;}

                I have seen a facebook application in which clicking on a radio button renders a graph.

                As you can see below:

                I wanted to know whether there is any similar graph library through which i can generate the same graph in php.

                Thanks,

                Pankaj

                解决方案

                actually, generating this kind of graph is pretty easy - just use two DIVs - one is a 100% width bar, another DIV is in that first DIV making background colored % you require. you can even include text in that. easy, just plain HTML/CSS.

                UPDATE:

                HTML:

                <div class="bar">
                    <div class="percentage" style="width:66%">This is 66% wide div</div>
                </div>
                

                CSS:

                .bar { width: 99%; border: 1px solid #000; }
                .percentage { background: #000; }
                

                这篇关于使用php的简单水平条形图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何在php中从mysql数据库生成图形和图表 下一篇:处理一个长度为 3000 万个字符的字符串

                相关文章

                最新文章

                  <bdo id='7LH3T'></bdo><ul id='7LH3T'></ul>
              • <i id='7LH3T'><tr id='7LH3T'><dt id='7LH3T'><q id='7LH3T'><span id='7LH3T'><b id='7LH3T'><form id='7LH3T'><ins id='7LH3T'></ins><ul id='7LH3T'></ul><sub id='7LH3T'></sub></form><legend id='7LH3T'></legend><bdo id='7LH3T'><pre id='7LH3T'><center id='7LH3T'></center></pre></bdo></b><th id='7LH3T'></th></span></q></dt></tr></i><div id='7LH3T'><tfoot id='7LH3T'></tfoot><dl id='7LH3T'><fieldset id='7LH3T'></fieldset></dl></div>

                  <legend id='7LH3T'><style id='7LH3T'><dir id='7LH3T'><q id='7LH3T'></q></dir></style></legend>
                  <tfoot id='7LH3T'></tfoot>

                  <small id='7LH3T'></small><noframes id='7LH3T'>