如何在webform()上绘制圆圈? [英] How to draw circle on webform() ?

查看:76
本文介绍了如何在webform()上绘制圆圈?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试图在页面中心画一个圆圈。我无法理解我的错误。因为没有输出。我正在使用Windows-10 EDGE。



我的代码

Hi,
Iam trying to draw a circle on center of page. I can't understand my mistake. Because there is no output. And I am using Windows-10 EDGE.

My Codes

str_solution.Append(@"<style type='text/css'>
                 .brown-circle {
                 display: block;
                 height: 20px;
                 width: 20px;
                 background-color: #B0641C;
                -moz-border-radius: 10px;
                -webkit-border-radius: 10px;
                -khtml-border-radius: 10px;
                 border-radius: 10px;
               position:relative;
                 float:left;
                margin:0 5px 10px 0;
                 } 
                .yellow-circle {
                 display: block;
                 height: 20px;
                 width: 20px;
                 background-color: #f7c639;
                -moz-border-radius: 10px;
                -webkit-border-radius: 10px;
                -khtml-border-radius: 10px;
                 border-radius: 10px;
               position:relative;
                 float:left;
                margin:-8px 5px 10px 0;
                 } 
            
                 </style>");

        for (int i = 0; i < 10; i++)
        {
            str_solution.Append("<span class=brown-circle></span>");
        }
        str_solution.Append("<br/><br/>");

        for (int i = 0; i < 10; i++)
        {
            str_solution.Append("<span class=yellow-circle></span>");
        }
        lbl_circle.Text = str_solution.ToString();





谢谢



我尝试了什么:



我尝试在WebForm上绘制圆形。但是不显示,可能是浏览器边缘?



Thanks

What I have tried:

I try to Draw Circle on WebForm. But Not Displaying, May be Browser-Edge?

推荐答案

感谢回复!

代码保存Image @的URL。因此工作正常。

感谢您的帮助!
Thanks For the Replies!.
The code save the Image @ its URL. And hence working good.
Thanks for the helps!


这篇关于如何在webform()上绘制圆圈?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆