高手们 如何让一个linklabel运行时的内容不要是蓝色 并且 去掉不显示下划线?谢谢指教。

解决方案 »

  1.   

    在样式表里写
    a:link { text-decoration:none; font-size:9pt; color:#000000}
    a:visited {text-decoration:none; font-size:9pt; color:#ff00ff}
    a:hover {text-decoration:none; font-size:9pt; color:#ff0000}
    a:active {text-decoration:none; font-size:9pt; color:#0000ff}颜色自己改
      

  2.   

    this.linkLabel1.LinkBehavior=LinkBehavior.NeverUnderline;
    this.linkLabel1.LinkColor=Color.Black;