主题不好,皮肤好?
我发现很少有帖子,人们基本上在抱怨主题,同时认为皮肤很有用:
a)但是皮肤不是只能与主题结合使用,因此皮肤不是主题不可分割的一部分吗?
b) 那么为什么皮肤被认为很有用,而主题却没有那么有用呢?
谢谢
I found few posts where people were basically complaining about themes and at the same time thought skins were useful:
a) But aren’t skins only used in combination with themes, thus isn’t a skin inseparable part of a theme?
b) So why are skins considered useful, while themes not so much?
Thanx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
两者都不要使用:使用 CSS。这是事实上的标准。
Don't use either: use CSS. It's the de facto standard.
主题包括一个或多个皮肤和 CSS。
允许自定义主题意味着允许自定义 CSS,这是某些安全漏洞的载体。
您可以只有一个主题,并为该主题提供多种皮肤。这些皮肤允许人们自由选择事物的外观,同时避免潜在的安全陷阱。
请注意,如果您控制主题(您提供主题,包括 CSS,而不是允许用户上传自己的 CSS),那么安全考虑就不是什么大问题。
A theme includes one or more skins and CSS.
Allowing custom themes means allowing custom CSS, which is a vector for certain security exploits.
You can have just one theme, with multiple skins for that theme. The skins allow some freedom of choice in how things look, while avoiding potential security pitfalls.
Note that if you control your themes (you provide the themes, including CSS, rather than allowing users to upload their own CSS) then the security consideration isn't a big deal.