CSS演示:
/*文件选择 type=file-path*/ @set std-file-selector{ :root{width:214px;height:24px;line-height:24px;padding:0px;margin:0px;border:1px solid @mCtlborder;background: @mCtlbackground;color:@mText3;} :root > caption{padding:0px 0px 0px 24px;height:12px;foreground-repeat:no-repeat;foreground-position: 4px 50%;} :root:empty > caption {padding:0px 0px 0px 6px;color:@mText4;} :root > button{margin:0;padding:0;width:36px;height:18px;line-height:24px;color:@mText3;border:none;border-left: 1px solid @mline;} :root > button > text {content: "删除";} :root:empty > button > text {content: "选择";} }
|
控件代码:
<input type="file-path" filter="压缩文件:*.tar.gz;" />
通过控件下的 button > text 的 content 属性来替换文字,
:root > button > text {content: "删除";} :root:empty > button > text {content: "选择";}
|