如何解决删除框阴影的顶部
我正在使用类似的内容,并希望删除顶部阴影,因为它看起来不太好。有什么想法吗?
div#custom_html-5.widget_text.widget.widget_custom_html {
box-shadow: 0 0 0.5px black
}
解决方法
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
您可以使用它。
,我正在发送我要执行的操作的完整代码,因此您可以理解:
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
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。