ygdd1688 Posted July 29, 2010 Share Posted July 29, 2010 大家好,我想把logo上的h1标签删掉,并依次把其它的h2,h3,h4换成h1,h2,h3. 我该怎么去操作呢?我之前从header.tpl里边直接把h1删除了,但是我的logo却从左边变到了右边,请问这是怎么回事?我该怎么做? Link to comment Share on other sites More sharing options...
21846657 Posted July 29, 2010 Share Posted July 29, 2010 Hi,通常情况下,global.css里有对应模板文件(.tpl文件)里html标签的CSS代码,譬如现在这个case,global.css里第195行的h1#logo控制着header.tpl里的 : h1#logo { float:left; /* 实现向左浮动。*/ margin-top:0.5em; width:27%; } 所以,你还要在global.css里将这个CSS selector,也就是h1#logo,修改为你所用的。 Link to comment Share on other sites More sharing options...
ygdd1688 Posted July 29, 2010 Author Share Posted July 29, 2010 就是只把h1去掉,还让logo保持原位不动,应该怎么修改h1#logo { 给我发段代码好吗?我不是很懂CSS Link to comment Share on other sites More sharing options...
Alison Simas Posted July 29, 2010 Share Posted July 29, 2010 我对CSS也不太懂,但我想应该是这样的。 logo { float:left; /* 实现向左浮动。*/ margin-top:0.5em; width:27%; } 不对的话,别骂我。 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now