将鼠标光标移到其上时降低底部

时间:2017-07-14 14:04:06

标签: php html css

我遇到了问题:当我尝试在下拉菜单的子菜单上移动鼠标光标时,出于某种动机,它会让人失望。 我尝试在文件js中检入文件css end但是在第三天我再也没有找到解决方案..我认为这可能是类css中[block]的一些问题。有人看到是否有一些错误的结果最终如何解决这个问题?在这下发布带有代码的图像。 预先感谢。

enter image description here

这里有另一张图片...也许更好理解: enter image description here 这里有关于top-link的代码: / * ================================================ ======================================= * /

-->   .top-link { background: #f7f7f7;line-height: 35px;  position: relative;color: #6a6a6a; border-bottom: 1px solid #d8d8d8;}
    .form-language, .form-currency { float: left;}
    .form-language label { display: none;}
    .form-language select, .form-currency select { padding: 4px 10px; background: #f2f2f2;}
    p.welcome-msg { margin: 0 0 0 25px; float:left; padding: 5px 0;}
    .top-link ul.links {   padding: 5px 0;}
    .top-link ul.links li { padding:0 15px 0 0; float: left;}
    .top-link ul.links li a {  color: #6a6a6a;font-size: 11px;text-transform: uppercase; }
    .top-link ul.links li a:hover {  }
    .call-phone{text-align: right;}
    .call-phone span{color:#999;font-weight: bold;}

这里有关于底部的代码下拉:

.drop-lang {
    list-style: none;
 padding: 0;
 margin: 0;float: right;
}
.drop-lang .drop-trigger {
    position: relative;
    z-index: 9999;
    float: right;
    padding: 0 5px 0 10px;
}

.drop-lang li a {
    position: relative;
    padding: 5px 0 5px 0;
    display: block;
    color: #6a6a6a;
    text-transform:uppercase;
    font-weight: normal;
    font-size: 11px;
    z-index: 9999;
}

.drop-lang .drop-trigger .sub-lang {
    position: absolute;
    top:40px;
    left:-1px; /* dropdown left or right */
    list-style: none;
    padding:0 11px 0 4px;
    margin: 0;
    display: none;  
    background: #f7f7f7;
    border: 1px solid #d8d8d8;
    border-top: none
    z-index: 9999;
}
.drop-lang .drop-trigger:hover .sub-lang {
    top:45px;
    display: block;
}

.drop-lang .sub-lang li a { padding: 0 5px; line-height: 22px; display: block; color: #666; text-transform:uppercase; font-weight: normal; font-size: 11px; border-top: 1px solid #d8d8d8;  border-right:0;border-left:0; border-bottom:0; border-radius:0;}
.drop-lang .sub-lang li a:hover { }

Html / php部分:

<?php if(count($this->getStores())>1): ?>
<div class="form-language"> 
    <label for="select-language"><?php echo $this->__('Language:') ?></label>
    <ul class="drop-lang">
        <li class="drop-trigger">
            <?php foreach ($this->getStores() as $_lang): ?>
            <?php if($_lang->getId() == $this->getCurrentStoreId()): ?>
            <a class="<?php echo $_lang->getCode() ?>" href="<?php echo $_lang->getCurrentUrl() ?>"><?php echo $this->htmlEscape($_lang->getName()) ?><i class="fa fa-angle-down"></i></a>
            <?php endif?>
            <?php endforeach; ?>
        <ul class="sub-lang">
    <?php foreach ($this->getStores() as $_lang): ?>
        <?php $_selected = ($_lang->getId() == $this->getCurrentStoreId()) ? ' class="selected"' : '' ?>
        <li><a class="<?php echo $_lang->getCode() ?>" href="<?php echo $_lang->getCurrentUrl() ?>"<?php //echo $_selected; ?>><?php echo $this->htmlEscape($_lang->getName()) ?></a></li>
    <?php endforeach; ?>
        </ul>
        </li>
    </ul>
</div>
<?php endif; ?>

1 个答案:

答案 0 :(得分:0)

尝试小提琴 - https://jsfiddle.net/456f2sf7/

...
int orderBitLength = privKeyParam.Parameters.N.BitLength;
X962Parameters x962 = new X962Parameters(privKeyParam.PublicKeyParamSet);
ECPrivateKeyStructure privKeyStruct = 
                    new ECPrivateKeyStructure(orderBitLength, privKeyParam.D, pubKeyInfo.PublicKeyData, x962);

string header = @"-----BEGIN EC PRIVATE KEY-----";
string privKeyStr = Convert.ToBase64String(privKeyStruct.GetDerEncoded(), 
                    Base64FormattingOptions.InsertLineBreaks);
string tail = @"-----END EC PRIVATE KEY-----";

string path = @"c:\tmp\myprivkey.pem";
TextWriter textWriter = new StreamWriter(path);
textWriter.WriteLine(header);
textWriter.WriteLine(privKeyStr);
textWriter.WriteLine(tail);
textWriter.Flush();
textWriter.Close();
...

将上边距减少到20px,确保下拉列表不会消失,因为它只在悬停时可见。