大佬们,div#一个变量名是啥意思
css吧
全部回复
仅看楼主
level 2
比如 div#can{
width:300px;
height:500px;
margin:10px 0 0 300px;
}
div#control{
position:fixed;
left:700px;
bottom:150px;
width:400px;
}
大括号内的我懂,但div # 是干嘛的啊
2020年05月20日 11点05分 1
level 14
#是id选择器,比如,可以用div#test或者
#test来选择,不过div#
test的重权更高
2020年05月22日 00点05分 2
@BOOK_思义 那test是一个式样吗?
2020年05月22日 00点05分
2020年05月22日 01点05分
level 4
一个名叫can的id块元素
2020年05月24日 01点05分 3
1