svse001

导航

2012年11月8日 #

lable

摘要: int i = 0; private void button1_Click(object sender, EventArgs e) { //背景颜色 this.label1.BackColor = Color.Black; //字体颜色 this.label1.ForeColor = Color.Red; i++; if (i < 5) { this.label1.Text = i.ToString(); } } //效果展示在标题中,不够灵活 private void label1_MouseMove(object sender, MouseEventArgs e) { this.Te 阅读全文

posted @ 2012-11-08 18:07 SVSENET 阅读(72) 评论(0) 推荐(0)

简单的登录

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2012-11-08 17:05 SVSENET 阅读(1) 评论(0) 推荐(0)

css_word-wrap的使用

摘要: word-wrap:break-word与word-break:break-all共同点:都能把长单词强行断句。不同点:word-wrap:break-word会首先起一个新行来放置长单词,新的行还是放不下这个长单词则会对长单词进行强制断句; word-break:break-all则不会把长单词放在一个新行里,当这一行放不下的时候就直接强制断句了。<body><p style="background:#000; width:100px; color:#F00; word-wrap:break-word" data-mce-style="back 阅读全文

posted @ 2012-11-08 16:17 SVSENET 阅读(139) 评论(0) 推荐(0)

css_"-"的应用

摘要: <style> body,ul,li{ padding:0; margin:0;} ul,li{ list-style:none;} .container{ height:210px; width:460px; border:5px solid #000;} ul{ height:210px; margin-right:-100px;}/*一个负的margin-right,相当于把ul的宽度增加了20px*/ li{ height:100px; width:100px; background:#09F; float:left; margin-right:20px; margin-b 阅读全文

posted @ 2012-11-08 16:04 SVSENET 阅读(90) 评论(0) 推荐(0)

css_div居中

摘要: <style>body{padding:0; margin:0}div{width:100px; height:100px; position:absolute; left:50%; top:50%; margin-left:-50px; margin-top:-50px; background:#f00}</style></head><body><div></div> 阅读全文

posted @ 2012-11-08 16:02 SVSENET 阅读(141) 评论(0) 推荐(0)