使UI Bootstrap手风琴朝向完全可点击的区域

时间:2015-06-02 20:12:45

标签: angularjs angular-ui-bootstrap

我有一个UI Bootstrap手风琴,其标题我想完全可点击,而不仅仅是默认行为的标题。

Function LogWrite
{
   Out-file -Append "scan.log"
}

function Test-IsAdmin 
{
    If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(
    [Security.Principal.WindowsBuiltInRole] "Administrator"))
{
    Write-Warning "You do not have Administrator rights to run this script!`nPlease re-run this script as an Administrator!"
        Break
    }
}

function Restart-saned
{
    Get-Service -name TBS | LogWrite
    Stop-Service -name TBS
    Start-Service -name TBS
}

是否有一些解决方法?

1 个答案:

答案 0 :(得分:2)

问题是处理切换的锚点是围绕标题文本而不是div。我会使用负边距设置标题的内容,并匹配与标题panel的填充值对应的正填充,以便将可点击区域扩展到div之外。

例如,假设panel-heading上的填充为9px 15px,您的panel-heading-blue

中有以下css
.panel-heading-blue{
    margin: -9px -15px; 
    padding: 9px 15px;
}