【发布时间】:2014-07-24 15:06:22
【问题描述】:
更新:我已经能够针对进行我需要的更改所需的代码。但是,我现在需要弄清楚如何只使这个 div 的一部分透明。
例如,导航栏的宽度为 750 像素。我需要使前 75 个像素透明。我知道我需要使用此代码:
opacity: 0|initial|inherit;
但是,我如何只将该代码应用于 750 像素 div 内的一个部分 (75px)?这是我需要定位的 ID 和类。
#mega_main_menu.primary > .menu_holder > .mmm_fullwidth_container {
background-image: url('http://visualicreative.com/wp-content/uploads/2014/07/Nav- Bar.png');
background-repeat: repeat;
background-position: center;
background-attachment: fixed;
background-size: cover;
网站:www.visualicreative.com
谢谢你,
视觉我
【问题讨论】:
-
上不了你的网站,但是可以通过设置日志显示垂直对齐:inline-block;然后添加一个 line-height:
;
标签: css wordpress uinavigationbar