Home
Sign Up
Sign In
Can I use?
›
http://caniuse.com/
Less
›
http://lesscss.org
Cool Libraries
›
Bootstrap from Twitter
›
Jetstrap
Advertisement
V2EX
›
CSS
这行 css 的作用是什么?
he2020
·
Nov 8, 2020
· 3587 views
This topic created in 2206 days ago, the information mentioned may be changed or developed.
页面在: https://www.gettoby.com/ 去掉.Logo 元素的 padding-left 貌似对布局毫无响。那加入这行 css 的原因是什么?
CSS
貌似
logo
页面
2 replies
•
2020-11-08 22:29:47 +08:00
Athrob
Nov 8, 2020
1
1
这里有个链接的文字"Toby"颜色被弄成透明了看不到, padding-left 就是让文字显示在图标右边用的.
可能之前是图标+文字的, 后来发现不好看直接改成一张背景图了.
所以那个 padding-left 看上去对布局没影响, 但是改下字的颜色就看出变化来了.
murmur
Nov 8, 2020
1
2
的却没什么用,因为最小宽度还有 min-width 的控制,就算不考虑内边距也不会特别离谱
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
2433 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms ·
UTC 13:06
·
PVG 21:06
·
LAX 05:06
·
JFK 08:06
♥ Do have faith in what you're doing.
❯