/********************************************lingEdit编辑框*********************************************************/
QLineEdit {
border:2px solid red; /* 外边框 */
border-radius: 10px; /* 倒角 */
padding: 10 8px; /* 内边框:上下和左右的距离*/
background: yellow; /* 背景色 */
selection-background-color:blue; /* 选中高亮背色 */
min-width:200px;
min-height:40px;
}
/*获取焦点*/
QLineEdit:focus
{
color: #b1b1b1; /*字体颜色*/
border: 1px solid #7a7a7a; /*边框宽度样式及颜色*/
}
/*鼠标滑过*/
QLineEdit:hover
{
border: 1px solid #b1b1b1; /*边框颜色*/
}
/* 密码模式 */
QLineEdit[echoMode="2"] {
lineedit-password-character:9679;
}
/* 当是只读模式时 */
QLineEdit:read-only {
background:red;
}
15-QLineEdit
最新推荐文章于 2021-07-01 16:32:03 发布