我有一个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
}
是否有一些解决方法?
答案 0 :(得分:2)
问题是处理切换的锚点是围绕标题文本而不是div
。我会使用负边距设置标题的内容,并匹配与标题panel
的填充值对应的正填充,以便将可点击区域扩展到div
之外。
例如,假设panel-heading
上的填充为9px 15px
,您的panel-heading-blue
类
.panel-heading-blue{
margin: -9px -15px;
padding: 9px 15px;
}