.googlePic{
content: url('../../img/googlePlusIcon.PNG');
margin-top: -6.5%;
padding-right: 53px;
float:right;
height: 19px;
}
Run Code Online (Sandbox Code Playgroud)
这是googlePic我的css文件中的一个示例.它的工作原理并打印出漂亮的google chrome和safari.但是,它不起作用firefox.Nth打印出来.请帮忙 :)
以下是我的css.我不知道为什么当我在dekstop视图上打开我的网站时,我的#wrapDesktopNavBar没有显示.请帮我看一下谢谢:)
@media screen and (min-width: 800px) {
/* Navigation bar (blank) settings */
#wrapDesktopNavBar {
visibility: visible;
width: 100%; /*Sets the width*/
height: 70px; /*Sets the height*/
top: 0%; /*Sets the distance from the top*/
position: relative; /*Fixes the bar at the designated position*/
background-color: #ffffff; /*Sets the background color to white*/
font-family: Helvetica, Arial, sans-serif; /*Sets the font of the headers*/
z-index: 1; /*Sets as 1 to be the top layer, bottom layers should use small index number, vice …Run Code Online (Sandbox Code Playgroud) str = <a href = "#homecoupon" class ="current">COUPONS</a>
Run Code Online (Sandbox Code Playgroud)
如何从str获得COUPONS这个词.单词#homecoupon可能会更改为其他单词,因此我无法执行检索第n个位置值的子字符串方法.在class ="current">COUPONS</a>将始终是固定的.
有没有办法可以回溯跟踪并检索最后一个第n个单词.