ASP.Net 小知识

来源:互联网 发布:网店美工教材 编辑:程序博客网 时间:2024/04/30 01:08

1.asp:label 加超链接 并是在新网页中打开

 

<a href="http://www.baidu.com" target ="_blank"><asp:Label runat ="server" ID ="txtdjh" ></asp:Label></a>

 

2.加空白

&nbsp;

 

3.<div class=w id=menu>中的[class="和[id="各指什么意思?

 

class是类.可以在一个页的好多地方使用.比如文字链接的样式.在css里class写成
.w { color:red, }
id是标示.在一个页里具有唯一性.准确表示这个元素的名称.例如一个页中的菜单部分.在css里id写成
#meun { width:100%, }

 

4.background-image:url(../img/right.gif)

 

style="height :200px; background-image:url(img/right.gif); background-repeat :no-repeat; background-position:center"

原创粉丝点击