sublime如何格式化
ctrl + shift + P,在命令框中输入reindent。
全屏固定导航横条
在导航格子内设置格式
width:100%;
position:fixed;
网页页面不随窗口大小变化而变化
在盒子内设置(1000px只是示例,多少像素自己视情况而定)
min-width:1000px;
链接文字太多,只希望在一行内显示,多出的以省略号省略
text-overflow:ellipsis;
white-space:nowrap;
文字滚动
<marquee>想要滚动的文字</marquee>
属性 | 属性取值 | 含义 |
---|---|---|
direction | up,down ,left ,right | 向上,下,左,右滚动 |
behavior | scroll,slide,alternate | 循环,一次,来回交替滚动 |
scrollamount | 以像素为单位 | 滚动速度 |
scrolldelay | 以毫秒为单位 | 时间间隔 |
loop | 数字 | 循环次数 |
当然,还有一些width、height等之类的属性,就不一一介绍了。