|
@@ -96,14 +96,15 @@ def f_display_images_by_side(image_path_list, display, title: str = "", width: i
|
|
|
image_path_list2: Union[list, None] = None, title2: str = "", ):
|
|
|
if isinstance(image_path_list, str):
|
|
|
image_path_list = [image_path_list]
|
|
|
- html_str = '<div style="display:flex; justify-content:space-around;">'
|
|
|
+ # justify-content:space-around; 会导致某些情况下图片越界
|
|
|
+ html_str = '<div style="display:flex;">'
|
|
|
if title != "":
|
|
|
html_str += '<h3>{}</h3>'.format(title)
|
|
|
for image_path in image_path_list:
|
|
|
html_str += f'<img src="data:image/png;base64,{_f_image_to_base64(image_path)}" style="width:{width}px;"/>'
|
|
|
html_str += '</div>'
|
|
|
if not (image_path_list2 is None or len(image_path_list2) == 0):
|
|
|
- html_str += '<div style="display:flex; justify-content:space-around;">'
|
|
|
+ html_str += '<div style="display:flex;">'
|
|
|
if title2 != "":
|
|
|
html_str += '<h3>{}</h3>'.format(title2)
|
|
|
for image_path in image_path_list2:
|