滚动
将按钮代码插入到哪里
论坛
在互联网上有很多关于创建按钮的教程,通常会附带按钮的HTML代码和样式代码。那么,这些按钮的代码应该插入到Drupal的哪里呢?例如这样的HTML代码:
<a href=”#” alt=”” title=”” class=”buttp”>按钮名称</a>
那么CSS代码该怎么处理呢?是将其插入主题的样式中,还是创建一个新的样式文件并在某处引入它呢?
CSS代码:
<style type="text/css">
.buttp {
padding:10px 15px;
margin: 5px;
background: #003399;
color: #fff;
font-size: 0.9em;
font-weight: bold;
line-height: 1.3em;
border: 1px dashed #fff;
border-radius: 2px;
text-shadow: -1px -1px #030;
font-weight: normal;
}
</style>
我使用的是zen主题,想为主菜单制作按钮。请帮助一下新手。
