删除框阴影的顶部

时间:2020-08-19 10:42:31

标签: shadow

我正在使用类似的内容,并希望删除顶部阴影,因为它看起来不太好。有什么想法吗?

div#custom_html-5.widget_text.widget.widget_custom_html {
 box-shadow: 0 0 0.5px black
}

2 个答案:

答案 0 :(得分:0)

from cgi import parse_header, FieldStorage

#see also: https://stackoverflow.com/a/56405982/10913265
c_type, c_data = parse_header(event['headers']['Content-Type'])
assert c_type == 'multipart/form-data'

#see also: https://stackoverflow.com/a/38718958/10913265
fs = FieldStorage(fp=event['body'], headers=event['headers'], environ={'REQUEST_METHOD':'POST', 'CONTENT_TYPE':event['headers']['Content-Type'], })['file']

#If fs contains a single file or no file: making FieldStorage object to a list, so it gets iterable
if not(type(fs) == list):
    fs = [fs]

for f in fs:
    originalFileName = f.filename
    #no file: 
    if originalFileName == '':
        continue
    binaryFileData = f.file.read()
    #Do something with the data 

您可以使用它。

答案 1 :(得分:0)

我正在发送我要执行的操作的完整代码,因此您可以理解:

div#search-2.widget.widget_search { 
 margin-bottom: 20px
}
div#search-2.widget.widget_search { 
     border: 1px solid #dcdcdc
}
div#search-2.widget.widget_search {
 box-shadow: 0 0 0.5px black
}
div#search-2.widget.widget_search { 
 padding-bottom: 20px
}
div#search-2.widget.widget_search { 
 padding-top: 10px
}
div#search-2.widget.widget_search {
    border-bottom: none;
}
div#custom_html-5.widget_text.widget.widget_custom_html {
    border: 1px solid #dcdcdc
}
div#custom_html-5.widget_text.widget.widget_custom_html {
 box-shadow: 0 0 0.5px black
}
#custom_html-5.widget_text.widget.widget_custom_html {
 border-top: none;
}
div#custom_html-5.widget_text.widget.widget_custom_html {
    margin-top: -20px
}
div#custom_html-5.widget_text.widget.widget_custom_html {
 padding-bottom: 10px
}
    
相关问题