I used the Upload Python Package workflow on GitHub to upload the module stored in the repository to PyPI.
As you can see at the link above, I followed the tutorial given by packaging.python.org, to be more specific I used setup.py instead of setup.cfg.
Anyway an error occurred during the last deploy, which gave me the following error:
Run python -m build
python -m build
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.10.4/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.4/x64/lib
running egg_info …Run Code Online (Sandbox Code Playgroud) 想象一下我有一个里面<div>有一些:<p>
#myDiv {
width: max-content;
border-style: dashed;
}Run Code Online (Sandbox Code Playgroud)
<div id="myDiv">
<p>This is my text</p>
</div>Run Code Online (Sandbox Code Playgroud)
但我不喜欢文本与 如此接近border,所以我尝试了以下方法:
#myDiv {
width: calc(max-content + 2px);
border-style: dashed;
}Run Code Online (Sandbox Code Playgroud)
<div id="myDiv">
<p>This is my text</p>
</div>Run Code Online (Sandbox Code Playgroud)
但是(如您所见)它不起作用。
所以我的问题是是否有办法创建<div>宽度为
比其中的内容多两个像素
自从我尝试过
calc(max-content + 2px)
Run Code Online (Sandbox Code Playgroud)
没用。
先感谢您。