FineUI 官方论坛

标题: 问下链接按钮怎么设置超链接的样式? [打印本页]

作者: goldentime    时间: 2019-2-13 16:24
标题: 问下链接按钮怎么设置超链接的样式?
a.blue:link, a.blue:visited { font-family: 宋体, "Times New Roman", Times, serif; text-decoration: none; font-weight: normal;color:#035fc4 }
a.blue:active, a.blue:hover { font-family: 宋体, "Times New Roman", Times, serif;  text-decoration: underline; color:#ff4400}
这样的CSS对aspinkButton有效
对finkButton无效了



作者: sanshi    时间: 2019-2-13 21:57
F12看下DOM节点的层次结构,可能你的这个样式被覆盖了
作者: goldentime    时间: 2019-2-14 09:24
finkButton在客户端是
<div id="pnList_SearchForm_pnlSearchRow1_btnDefaultSort" class="f-field f-field-label-wrap f-field-msgtarget-side f-cmp sort-now f-widget f-layout-column-item" style="margin-right: 15px; margin-left: 15px; display: table; left: 72px;">
        <div class="f-field-fieldlabel-cell" style="display: none; width: 130px;">
                <label class="f-field-fieldlabel f-field-fieldlabel-right" for="pnList_SearchForm_pnlSearchRow1_btnDefaultSort-inputEl" style="width: 125px;"></label>
        </div>
        <div class="f-field-body-cell">
                <div class="f-field-body-cell-inner">
                        <div id="pnList_SearchForm_pnlSearchRow1_btnDefaultSort-inputEl" class="f-field-body f-field-label">
                                <a href="javascript:;" onclick="javascript:__doPostBack('pnList$SearchForm$pnlSearchRow1$btnDefaultSort','');">默 认</a>
                        </div>
                </div>
        </div>
        <div class="f-field-error-cell f-state-error-text">
                <i class="f-icon f-iconfont f-iconfont-exclamation"></i>
        </div>
</div>
这个样子的

写的css是sort-now
被放在了最外层的div里面
怎么定位到最里面的<a>?




欢迎光临 FineUI 官方论坛 (https://fineui.com/bbs/) Powered by Discuz! X3.4